Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-file content document localization #229

Closed
jeremydw opened this issue Jun 16, 2016 · 1 comment
Closed

Multi-file content document localization #229

jeremydw opened this issue Jun 16, 2016 · 1 comment
Assignees

Comments

@jeremydw
Copy link
Member

In addition to split documents (by --- and $locale) and @ notation for yaml-formatted documents from #142 , it should be possible to localize content files by duplicating the file and annotating the filename with @<locale>.

For example:

page.md
page@fr.md  # French version of `page.md`.

Grow will treat these localized files as if they are no different from currently-implemented "split-document" localized files. In the above example, page@fr.md implies a configuration of $locale: fr, but otherwise it will work exactly the same as Grow's current split-document localization works (http://grow.io/docs/content-localization/#markdown-body-localization) and no other changes would occur.

The intent of this feature is to make it easier to manage the localization of very large Markdown documents, though it can also be used to split localizations of yaml-formatted documents into multiple files if the user desires.

This should function somewhat similarly to octopress/multilingual (https://github.com/octopress/multilingual#site-template-language-dictionaries) or, less similarly, to Jekyll plugins that allow you to store manage Markdown files on a per-language basis in different folders (https://github.com/Anthony-Gaudino/jekyll-multiple-languages-plugin#42-folder-structure). Grow's implementation would not span folders but rather would simply let the user decorate filenames within the same folder.

@jeremydw
Copy link
Member Author

This was released in https://github.com/grow/grow/releases/tag/0.0.61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant