Theme translation
The theme is fully translatable by enabling a publication language in the settings of the Ghost Admin. Before that, you must prepare your language file.
Step-by-Step- Inside the
../locales/folder, add target language files for each translatable language used on your site. For examplees.jsonfor Spanish andpl.jsonfor Polish. A valid language code must be used. - Translate the sentences used in theme inside your new language files, for example, in
en.json:
{
"Back": "Back",
"Newer Posts": "Newer Posts",
"Older Posts": "Older Posts",
...
}
- And edited to translate into Spanish for
es.json:
{
"Back": "Volver",
"Newer Posts": "Artículos Siguientes",
"Older Posts": "Artículos Anteriores",
...
}
- Upload a theme with a new language file.
- Go to the General settings in the Ghost Admin.
- At the top of the page, you’ll see the Publication info section.
- Enter the correct language code into your Publication language settings menu.
- Finally, click Save settings to activate.
If you edited the active language, you have to restart Ghost to make the changes effective. Alternatively, enter another language code and click Save settings to activate, then switch back to your language code.
Type at least 2 characters to search