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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user