Setting the language dynamically


#1

Ghost 1.2 introduced a powerful I18n system, but at the moment there isn’t any way to set the language dynamically, I would like to post content in multiple languages, but translating the theme when displaying a post that has an “es” tag is not possible.

Ideally, it would be great to change the language according to a route, ie:

routes:

collections:
  /:
    permalink: /{slug}/
    filter: 'tag:-es'
    template:
      - index
    language: 'en'
  /es/:
    permalink: /es/{slug}/
    filter: 'tag:es'
    language: 'es'

taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/