diff --git a/Gruntfile.js b/Gruntfile.js index 2205646d..ec914d56 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -106,6 +106,7 @@ module.exports = function(grunt) { 'index.html', 'conversation.html', 'options.html', + '_locales/**', 'protos/*', 'js/**', 'stylesheets/*.css', diff --git a/_locales/en/messages.json b/_locales/en/messages.json new file mode 100644 index 00000000..2c63c085 --- /dev/null +++ b/_locales/en/messages.json @@ -0,0 +1,2 @@ +{ +} diff --git a/_locales/it/messages.json b/_locales/it/messages.json new file mode 100644 index 00000000..2c63c085 --- /dev/null +++ b/_locales/it/messages.json @@ -0,0 +1,2 @@ +{ +} diff --git a/js/chromium.js b/js/chromium.js index 3e3a17be..47b2c085 100644 --- a/js/chromium.js +++ b/js/chromium.js @@ -157,6 +157,11 @@ } }; + // Translate + window.i18n = function(message) { + return chrome.i18n.getMessage(message); + }; + window.textsecure = window.textsecure || {}; window.textsecure.registration = { done: function () { diff --git a/manifest.json b/manifest.json index f948bf6e..62a73d81 100644 --- a/manifest.json +++ b/manifest.json @@ -7,6 +7,7 @@ "version": "0.1.5", "offline_enabled": false, "minimum_chrome_version": "37", + "default_locale": "en", "permissions": [ "unlimitedStorage",