mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -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:
@@ -20,6 +20,10 @@ class TranslationPlugin extends Plugin {
|
||||
}
|
||||
|
||||
replaceMF(formats, input, path = []) {
|
||||
if (!input) {
|
||||
return;
|
||||
}
|
||||
|
||||
Object.keys(input).forEach((key) => {
|
||||
let value = input[key];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user