forked from TryGhost/Ghost
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[i18n] Separate .json translation files for themes
pull request TryGhost#8437 - for .hbs templates in content/themes, using translation files: content/themes/mytheme/assets/translations/mytheme_en.json, mytheme_es.json, mytheme_en-US.json, etc. (replacing "mytheme" with the active theme, such as casper, etc.) - during Ghost's initialization, first default internationalization just for core briefly until settings for language and theme are available; then full internationalization for core and theme - files are read into memory just when needed - included comments with next changes when language will be in settings - there is a complementary commit for Casper default theme's PR TryGhost/Casper#306
- Loading branch information
Showing
5 changed files
with
97 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters