Source icon indicating copy to clipboard operation
Source copied to clipboard

How to use the theme in another language?

Open twatzl opened this issue 2 months ago • 1 comments

Ghost docs say that there should be translation support with themes, but i set the locale to 'de' and texts are still all in english?

https://docs.ghost.org/faq/translation

I also could not find any file containing translation keys for manual translation.

How can this theme be used in other languages?

twatzl avatar Nov 06 '25 01:11 twatzl

Ghost docs say that there should be translation support with themes, but i set the locale to 'de' and texts are still all in english?

https://docs.ghost.org/faq/translation

I also could not find any file containing translation keys for manual translation.

How can this theme be used in other languages?

There is no translation setup for this theme by default, but you can easily add one.

  1. add the folder locales and in it the file de.json.
  2. replace the hard-coded text with the translate helper tag.

e.g. in partials/components/navigation.hbs

- <a href="#/portal/signin" data-portal="signin">Sign in</a>
+ <a href="#/portal/signin" data-portal="signin">{{t "Sign in"}}</a>
  1. add the matching locale entry
{
  "Sign in": "Anmelden"
}

I added a German translation for my own site, feel free to use it. https://github.com/cprass/source-german/tree/translate

cprass avatar Nov 17 '25 19:11 cprass