Prepare for i18n
// FREEBIE
This commit is contained in:
parent
d03d6fb7a5
commit
e9d3272e87
5 changed files with 11 additions and 0 deletions
|
@ -106,6 +106,7 @@ module.exports = function(grunt) {
|
||||||
'index.html',
|
'index.html',
|
||||||
'conversation.html',
|
'conversation.html',
|
||||||
'options.html',
|
'options.html',
|
||||||
|
'_locales/**',
|
||||||
'protos/*',
|
'protos/*',
|
||||||
'js/**',
|
'js/**',
|
||||||
'stylesheets/*.css',
|
'stylesheets/*.css',
|
||||||
|
|
2
_locales/en/messages.json
Normal file
2
_locales/en/messages.json
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
{
|
||||||
|
}
|
2
_locales/it/messages.json
Normal file
2
_locales/it/messages.json
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
{
|
||||||
|
}
|
|
@ -157,6 +157,11 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Translate
|
||||||
|
window.i18n = function(message) {
|
||||||
|
return chrome.i18n.getMessage(message);
|
||||||
|
};
|
||||||
|
|
||||||
window.textsecure = window.textsecure || {};
|
window.textsecure = window.textsecure || {};
|
||||||
window.textsecure.registration = {
|
window.textsecure.registration = {
|
||||||
done: function () {
|
done: function () {
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
"version": "0.1.5",
|
"version": "0.1.5",
|
||||||
"offline_enabled": false,
|
"offline_enabled": false,
|
||||||
"minimum_chrome_version": "37",
|
"minimum_chrome_version": "37",
|
||||||
|
"default_locale": "en",
|
||||||
|
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"unlimitedStorage",
|
"unlimitedStorage",
|
||||||
|
|
Loading…
Reference in a new issue