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 called persona.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?

  • @PitaJ I ran ./nodebb build and also selected the right language.

    I did a mistake on the plugin.json... The missing s was the misstake 🤦:

    "languages": "languages"
    

    is right...

  • @pasib

    1. Make sure your user settings selected language is en-US. It defaults to en-GB
    2. You need to run ./nodebb build and restart after changing language files in order for them to apply in your site
    3. As you already have, the plugin.json of your theme will need to specify where the language files are
  • @PitaJ I ran ./nodebb build and also selected the right language.

    I did a mistake on the plugin.json... The missing s was the misstake 🤦:

    "languages": "languages"
    

    is right...

  • @pasib glad you found the issue


Suggested Topics