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:
Jarek Radosz 2021-11-25 22:55:37 +01:00 committed by GitHub
parent af241c7326
commit c3eb75bf00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,10 @@ class TranslationPlugin extends Plugin {
}
replaceMF(formats, input, path = []) {
if (!input) {
return;
}
Object.keys(input).forEach((key) => {
let value = input[key];