Open pea3nut opened 6 years ago
Hello,
I add some translation file in ./index.js like that:
./index.js
uiExports: { translations: [ resolve(__dirname, './translations/en.json'), resolve(__dirname, './translations/zh.json'), resolve(__dirname, './translations/zh-TW.json') ], }
I found that the key of UI-WELCOME_MESSAGE has affected the loading message.
UI-WELCOME_MESSAGE
But when I use orther key in index.html like this:
index.html
<h1>{{ 'msg' | translate }}</h1>
The en.json:
{ "UI-WELCOME_MESSAGE": "LoadingKKKKKKKKK", "msg": "hello", }
It shows me like this:
The key of UI-WELCOME_MESSAGE is effective but msg is not, why?
msg
Hello,
I add some translation file in
./index.js
like that:I found that the key of
UI-WELCOME_MESSAGE
has affected the loading message.But when I use orther key in
index.html
like this:The en.json:
It shows me like this:
msg
The key of
UI-WELCOME_MESSAGE
is effective butmsg
is not, why?