Plugin translations


(Kgish) #1

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?


(James Kiesel) #2

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


(Kgish) #3

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