Theme translation
Use the Basho Ghost theme translation files to change default interface text or add another language for labels, buttons, messages, and other translatable phrases.
Editing existing theme phrases (Requires theme editing)- Open the theme in Ghost’s code editor.
- In the file tree, open
locales/en.json. - Change the values on the right side of each translation pair. Keep the original phrase on the left unchanged:
{
"Old translate": "New translate",
...
}
- Click 'Save' to activate.
- Open the theme in Ghost’s code editor.
- Open
locales/en.json, select all of its content, and copy it. - Click the
+button in the file tree to create a new editable file. - In the 'File path' field, enter the full path for the target language file, for example
locales/es.jsonfor Spanish orlocales/pl.jsonfor Polish. Use a valid language code ↗. - Click 'Create file', then paste the content copied from
locales/en.jsoninto the new file. - Translate the values on the right side of each translation pair. Keep the original English phrases on the left unchanged. For example, in
locales/es.json:
{
"Back": "Volver",
"Newer Posts": "Artículos Siguientes",
"Older Posts": "Artículos Anteriores",
...
}
- Click 'Save' to activate the theme file changes.
- Go to the 'Publication language' settings in the Ghost Admin.
- Enter the same language code into the 'Site language' field, for example
es. - Click 'Save' to activate.
Type at least 2 characters to search