Translating Comments, Search and Portal

Hi, i translated the theme into a new language, but I noticed that there is no translation for native features such as comments, search bar, and portal page. On the GitHub repo of Ghost, I saw files like comments.json, newsletter.json, portal.json, search.json and signup-form.json and I was wondering if those will work when will be translated?

Thanks!

Yep, those are translation files! You’ll want to update your Ghost version and then refer to this changelog post:

Got it, those files must be added in the locales folder inside the theme?

No, you need to set the locale in the admin settings. After that, everything should be translated automatically if you’re on the latest version of Ghost

I have done that and the translation works, but in some words for example, I want to change the tense from plural to singular, etc…

If you find any issues with translations, you can contribute updates using this guide:

1 Like

No, actually as i said is not an issue I just want to change the tense on some worlds, for example instead of referring to many people I want to refer to a single one.

If you can share an example that would help. There’s no way (as of now) to override Ghost component translations, without hacking the core.

Even if i copy and paste the above files in the themes locales folder? Besides that the search bar placeholder text is still in English and the SIGN IN button is too.

The search bar is a separate app, as is the portal. They’re not part of the theme, and not controlled by the theme locale files.

Yes i know that, i mean if I copy those files ( comments.json , newsletter.json , portal.json , search.json) in my own structure can I rename those?

You’d need to build them into the react apps that load them. Putting them in the theme won’t have any effect, because they don’t load from there.

Or maybe I’m misunderstanding your question?

No, you got it, but i say that because although some parts of the cms are translated some others are in English…

You’re seeing English because no one has contributed those strings in your language (or hadn’t as of a few weeks ago). If you’re not on the latest version of ghost, updating may fix it. If not, the fix for unexpected English is simple - contribute the translations. I believe Vikas linked directions above.

See

1 Like