aboutsummaryrefslogtreecommitdiff
path: root/extension
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-02-23 11:44:01 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-02-23 11:44:07 +0100
commit718f81bcd858bd50373066845727b0cf520ccd06 (patch)
tree9ac51b84956eaa078e5f961be9c342447a92172e /extension
parent33abcfd4dcb7b11745e6c6fa6da1858943005708 (diff)
revert incomplete i18n for now
Diffstat (limited to 'extension')
-rw-r--r--extension/lib/i18n.ts17
-rw-r--r--extension/popup/popup.html2
2 files changed, 3 insertions, 16 deletions
diff --git a/extension/lib/i18n.ts b/extension/lib/i18n.ts
index c23ab0740..6ed8942b3 100644
--- a/extension/lib/i18n.ts
+++ b/extension/lib/i18n.ts
@@ -17,22 +17,10 @@
declare var i18n: any;
var i18n = <any>function i18n(strings, ...values) {
- i18n['init']();
- //console.log('i18n:', ...strings, ...values)
- return i18n['jed'].translate(strings[0]).fetch(...values);
- //return String.raw(strings, ...values);
+ // TODO: actually look up translation
+ return String.raw(strings, ...values);
};
-i18n.lang = chrome.i18n.getUILanguage();
-i18n.jed = null;
-i18n.strings = {};
-
-i18n.init = function() {
- if (null == i18n.jed) {
- i18n.jed = new window['Jed'] (i18n.strings[i18n.lang]);
- }
-}
-
// Interpolate i8nized values with arbitrary objects and
// return array of strings/objects.
i18n.parts = function(strings, ...values) {
@@ -47,3 +35,4 @@ i18n.parts = function(strings, ...values) {
return parts;
};
+
diff --git a/extension/popup/popup.html b/extension/popup/popup.html
index c67085c1b..a7983f1e9 100644
--- a/extension/popup/popup.html
+++ b/extension/popup/popup.html
@@ -6,9 +6,7 @@
<script src="../lib/vendor/mithril.js"></script>
<script src="../lib/vendor/lodash.core.min.js"></script>
<script src="../lib/vendor/system-csp-production.src.js"></script>
- <script src="../lib/vendor/jed.js"></script>
<script src="../lib/i18n.js"></script>
- <script src="../lib/i18n-strings.js"></script>
<script src="../lib/module-trampoline.js"></script>
</head>
<body>