Assign own translation
Solved
Technical Support
-
Hey!
I have to do a many changes in the translation. But I don't know exactly where. I took a look at following.
./node_modules/nodebb-theme-persona/languages/
and found some folders with the different languages unicode.There is a folder for example
en-US
and in this folder is a file calledpersona.json
. This Files contains{ "mobile-menu-side": "Switch which side each mobile menu is on" }
Can I copy all the contents of
./public/language/en-US
to my theme folder
./node_modules/nodebb-theme-persona/languages/
€: I tried it but it does not work. I also added
"language": "languages"
to my
plugin.json
. I changed the text for "New Topic" but it's still "New Topic".How is the way to archive custom translations on a theme?
-
@pasib
- Make sure your user settings selected language is en-US. It defaults to en-GB
- You need to run
./nodebb build
and restart after changing language files in order for them to apply in your site - As you already have, the plugin.json of your theme will need to specify where the language files are
-
@pasib glad you found the issue
Copyright © 2024 NodeBB | Contributors