Plugin translations

I’ve been able to add a new menu item to the admin dashboard, but for some reason it’s not catching my translation.

Instead of the menu item with the right text, I see:

[nl.myplugin.admin.menu_title]

My translation file plugins/myplugin/config/locales/client.nl.yml looks like this:

nl:
  js:
    myplugin:  
      dummy: "Hey dummy!"
      admin:
        menu_title: "Menu title"
        page_title: "Page title"

Anything I’m doing wrong?

1 Like

I usually have to clear out the tmp folder in my discourse project folder in order for it to catch my translations.

6 Likes

Wow, that did the trick, thanks for saving my life!

1 Like