Theme translation
Use translation files to add a new language or change the default text shown by the theme.
Editing existing theme phrases (Requires theme editing)- Open
../locales/en.jsonin your code editor. - Change theme phrases using this pattern:
{
"Old translate": "New translate",
...
}
- After making your changes, save the file, compress the theme as a ZIP archive, and upload it to Ghost.
- Inside
../locales/, add a file for the target language, for examplees.jsonfor Spanish orpl.jsonfor Polish. Use a valid language code. - Use
en.jsonas the source and add translations for your language. For example, ines.json:
{
"Back": "Volver",
"Newer Posts": "Artículos Siguientes",
"Older Posts": "Artículos Anteriores",
...
}
- After making your changes, save the file, compress the theme as a ZIP archive, and upload it to Ghost.
- Go to the 'Publication language' settings in the Ghost Admin.
- Enter the correct language code into the 'Site language' field.
- Click 'Save' to activate.
Type at least 2 characters to search