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:
Martin Pitt 2018-06-19 11:00:30 +02:00 committed by Lars Karlitski
parent 21950771af
commit 7ce7b2b40b
8 changed files with 220 additions and 3 deletions

14
po/po.empty.js Normal file
View 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"}}));