mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 21:19:41 -06:00
DEV: Don't crash on empty plugin translations (#15097)
ember build would throw and exit on: ```yml # plugins/my_plugin/config/locales/client.en.yml en: js: my_plugin: ```
This commit is contained in:
parent
af241c7326
commit
c3eb75bf00
@ -20,6 +20,10 @@ class TranslationPlugin extends Plugin {
|
||||
}
|
||||
|
||||
replaceMF(formats, input, path = []) {
|
||||
if (!input) {
|
||||
return;
|
||||
}
|
||||
|
||||
Object.keys(input).forEach((key) => {
|
||||
let value = input[key];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user