-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Sync core to 7f50504 * use hacs localizeFunc
- Loading branch information
Showing
8 changed files
with
158 additions
and
115 deletions.
There are no files selected for viewing
Submodule homeassistant-frontend
updated
69 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import fs from "fs"; | ||
|
||
let rawcore = fs.readFileSync("./homeassistant-frontend/src/translations/en.json"); | ||
let rawhacs = fs.readFileSync("./src/localize/languages/en.json"); | ||
|
||
const core = JSON.parse(rawcore); | ||
const hacs = JSON.parse(rawhacs); | ||
|
||
fs.writeFileSync( | ||
"./src/localize/languages/en.json", | ||
JSON.stringify( | ||
{ | ||
...hacs, | ||
ui: { | ||
components: { | ||
["subpage-data-table"]: core.ui.components["subpage-data-table"], | ||
}, | ||
}, | ||
}, | ||
null, | ||
2, | ||
), | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.