Skip to content

unable to use language dictionaries #16

@sburke56

Description

@sburke56

I was unable to use the language dictionary features and therefore abandoned using the plugin.

I specified lang:en in the _config.yml Ultimately what I did was have one languages.yml file that has both my languages and accessed the title in my layout file. This worked so I'm not sure why something like the octopress-multilingual plugin didn't work when trying to split up the languages to their own separate files. Accessing the language title like in the docs with "{{ lang.title }} => English title" didn't generate anything.

languages.yml
en:
gde-quickstart:
title: 'GDE Quick Start Guide v2.1'
cn:
gde-quickstart:
title: 'GDE快速入门指南v2.1'

layout file accessed the page title
{{ site.data.languages[page.lang].gde-quickstart.title }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions