Override Ghost-translations with theme's json?

Hi,

I was wondering if it is possible to override certain translations from the Ghost locales in the themes’ locales?

In general, no. Theme translations (living within the theme files) and Ghost/Portal/Comments/Search/etc translations are entirely separate.

But… there are some spots where you can override the default behavior (i.e. load a content-cta.hbs file), so if you want to share more about what specifically you’re doing, maybe there’s a workaround.

Yes, I’ve got that one and modified it.
But it is mainly for the login/registration texts for comment section.

Right. So comments is a separate app. You can fork it and build a copy with the strings you want, in a pinch.

Obviously, if there’s something wrong with those strings in general, it’d be ideal to fix them in general, but if you just want to customize them, then yeah, you’re looking at needing to make a custom version. If you’re just changing a few words, you can probably download the minimized file, find the strings, replace them, and use it. If you need bigger changes, you may need to fork the source, make your changes, then build the app.

Either way, you’ll need to put the file somewhere (in the theme’s assets folder works fine), and then override loading of that file, either via config file (if self hosting) or by excluding the script from ghost_head and manually adding the line that loads it.