Add i18n support
Make the "Running on.." string translatable and copy the extraction and conversion of JSX and PO files from Cockpit.
This commit is contained in:
parent
21950771af
commit
7ce7b2b40b
8 changed files with 220 additions and 3 deletions
14
po/po.empty.js
Normal file
14
po/po.empty.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
(function (root, data) {
|
||||
var loaded, module;
|
||||
|
||||
/* Load into Cockpit locale */
|
||||
if (typeof cockpit === 'object') {
|
||||
cockpit.locale(data)
|
||||
loaded = true;
|
||||
}
|
||||
|
||||
if (!loaded)
|
||||
root.po = data;
|
||||
|
||||
/* The syntax of this line is important by po2json */
|
||||
}(this, {"":{"language":"en"}}));
|
||||
Loading…
Add table
Add a link
Reference in a new issue