1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-04-17 23:54:28 +01:00

Fix en-gb translations (#8502)

Renamed lang key in lokalise
This commit is contained in:
Bram Kragten
2021-03-01 22:48:36 +01:00
committed by GitHub
parent f2a9725572
commit 54ec81b67d
6 changed files with 129 additions and 105 deletions

View File

@@ -369,14 +369,13 @@ gulp.task(
const newData = {};
Object.entries(data).forEach(([key, value]) => {
// Filter out translations without native name.
if (data[key].nativeName) {
newData[key] = data[key];
if (value.nativeName) {
newData[key] = value;
} else {
console.warn(
`Skipping language ${key}. Native name was not translated.`
);
}
if (data[key]) newData[key] = value;
});
return newData;
})