Commit 74e6d35d authored by Sascha Pfeiffer's avatar Sascha Pfeiffer

added some more languages

Signed-off-by: default avatarSascha Pfeiffer <sascha.pfeiffer@psono.com>
parent 7903cb08
......@@ -131,9 +131,13 @@
prefix: 'translations/locale-',
suffix: '.json'
})
.registerAvailableLanguageKeys(['en', 'de'], {
'en_*': 'en',
.registerAvailableLanguageKeys(['cs', 'de', 'en', 'es', 'fi', 'fr', 'hr', 'it', 'ja', 'ko', 'nl', 'pl', 'ru', 'vi', 'zh-cn'], {
'de_*': 'de',
'en_*': 'en',
'es_*': 'es',
'fr_*': 'fr',
'it_*': 'it',
'zh_*': 'zh-cn',
'*': 'en'
})
.fallbackLanguage('en')
......
This diff is collapsed.
{
}
\ No newline at end of file
{
}
\ No newline at end of file
{
}
\ No newline at end of file
{
}
\ No newline at end of file
{
}
\ No newline at end of file
{
}
\ No newline at end of file
{
}
\ No newline at end of file
{
}
\ No newline at end of file
{
}
\ No newline at end of file
{
}
\ No newline at end of file
{
}
\ No newline at end of file
{
}
\ No newline at end of file
var CACHE_VERSION = '%%PSONOVERSION%%';
self.addEventListener('install', function(event) {
event.waitUntil(
caches.open(CACHE_VERSION).then(function(cache) {
return cache.addAll([
'./',
'./activate.html',
'./config.json',
'./enforce-two-fa.html',
'./index.html',
'./lost-password.html',
'./open-secret.html',
'./popup_pgp.html',
'./privacy-policy.html',
'./privacy-policy-content.html',
'./register.html',
'./search.xml',
'./VERSION.txt',
'./css/lib/bundle.min.css',
'./css/contentscript.css',
'./css/datastore.css',
'./css/main.css',
'./css/open-secret.css',
'./fonts/FontAwesome.otf',
'./fonts/fontawesome-webfont.eot?v=4.7.0',
'./fonts/fontawesome-webfont.svg?v=4.7.0',
'./fonts/fontawesome-webfont.ttf?v=4.7.0',
'./fonts/fontawesome-webfont.woff?v=4.7.0',
'./fonts/fontawesome-webfont.woff2?v=4.7.0',
'./fonts/glyphicons-halflings-regular.eot',
'./fonts/glyphicons-halflings-regular.svg',
'./fonts/glyphicons-halflings-regular.ttf',
'./fonts/glyphicons-halflings-regular.woff',
'./fonts/glyphicons-halflings-regular.woff2',
'./fonts/opensans-cyrillic.woff2',
'./fonts/opensans-cyrillic-ext.woff2',
'./fonts/opensans-greek.woff2',
'./fonts/opensans-greek-ext.woff2',
'./fonts/opensans-latin.woff2',
'./fonts/opensans-latin-ext.woff2',
'./fonts/opensans-vietnamese.woff2',
'./img/android-chrome-192x192.png',
'./img/android-chrome-512x512.png',
'./img/apple-touch-icon.png',
'./img/appstore_apple.png',
'./img/appstore_google.png',
'./img/browserconfig.xml',
'./img/favicon.ico',
'./img/favicon-16x16.png',
'./img/favicon-32x32.png',
'./img/icon-16.png',
'./img/icon-32.png',
'./img/icon-48.png',
'./img/icon-64.png',
'./img/icon-128.png',
'./img/logo.png',
'./img/logo-inverse.png',
'./img/mstile-150x150.png',
'./img/psono-decrypt.png',
'./img/psono-encrypt.png',
'./img/sort_asc.png',
'./img/sort_asc_disabled.png',
'./img/sort_both.png',
'./img/sort_desc.png',
'./img/sort_desc_disabled.png',
'./translations/locale-de.json',
'./translations/locale-en.json',
'./js/lib/openpgp.worker.min.js',
'./js/bundle.min.js',
'./view/templates.js'
]);
})
);
});
self.addEventListener('fetch', function(event) {
event.respondWith(
caches.match(event.request)
.then(function(response) {
// caches.match() always resolves
// but in case of a success the response will have a value
//console.log(response);
if (response) {
//console.log('Serve from cache');
return response;
} else {
return fetch(event.request).then(function (response) {
return response;
}, function (response) {
//console.log(response);
});
}
})
);
});
self.addEventListener('activate', function(event) {
var cacheWhitelist = [CACHE_VERSION];
event.waitUntil(
caches.keys().then(function(keyList) {
return Promise.all(keyList.map(function(key) {
if (cacheWhitelist.indexOf(key) !== -1) {
return;
}
return caches.delete(key);
}));
})
);
var CACHE_VERSION = '%%PSONOVERSION%%';
self.addEventListener('install', function(event) {
event.waitUntil(
caches.open(CACHE_VERSION).then(function(cache) {
return cache.addAll([
'./',
'./activate.html',
'./config.json',
'./enforce-two-fa.html',
'./index.html',
'./lost-password.html',
'./open-secret.html',
'./popup_pgp.html',
'./privacy-policy.html',
'./privacy-policy-content.html',
'./register.html',
'./search.xml',
'./VERSION.txt',
'./css/lib/bundle.min.css',
'./css/contentscript.css',
'./css/datastore.css',
'./css/main.css',
'./css/open-secret.css',
'./fonts/FontAwesome.otf',
'./fonts/fontawesome-webfont.eot?v=4.7.0',
'./fonts/fontawesome-webfont.svg?v=4.7.0',
'./fonts/fontawesome-webfont.ttf?v=4.7.0',
'./fonts/fontawesome-webfont.woff?v=4.7.0',
'./fonts/fontawesome-webfont.woff2?v=4.7.0',
'./fonts/glyphicons-halflings-regular.eot',
'./fonts/glyphicons-halflings-regular.svg',
'./fonts/glyphicons-halflings-regular.ttf',
'./fonts/glyphicons-halflings-regular.woff',
'./fonts/glyphicons-halflings-regular.woff2',
'./fonts/opensans-cyrillic.woff2',
'./fonts/opensans-cyrillic-ext.woff2',
'./fonts/opensans-greek.woff2',
'./fonts/opensans-greek-ext.woff2',
'./fonts/opensans-latin.woff2',
'./fonts/opensans-latin-ext.woff2',
'./fonts/opensans-vietnamese.woff2',
'./img/android-chrome-192x192.png',
'./img/android-chrome-512x512.png',
'./img/apple-touch-icon.png',
'./img/appstore_apple.png',
'./img/appstore_google.png',
'./img/browserconfig.xml',
'./img/favicon.ico',
'./img/favicon-16x16.png',
'./img/favicon-32x32.png',
'./img/icon-16.png',
'./img/icon-32.png',
'./img/icon-48.png',
'./img/icon-64.png',
'./img/icon-128.png',
'./img/logo.png',
'./img/logo-inverse.png',
'./img/mstile-150x150.png',
'./img/psono-decrypt.png',
'./img/psono-encrypt.png',
'./img/sort_asc.png',
'./img/sort_asc_disabled.png',
'./img/sort_both.png',
'./img/sort_desc.png',
'./img/sort_desc_disabled.png',
'./translations/locale-cs.json',
'./translations/locale-de.json',
'./translations/locale-en.json',
'./translations/locale-es.json',
'./translations/locale-fi.json',
'./translations/locale-fr.json',
'./translations/locale-hr.json',
'./translations/locale-it.json',
'./translations/locale-ja.json',
'./translations/locale-ko.json',
'./translations/locale-nl.json',
'./translations/locale-pl.json',
'./translations/locale-ru.json',
'./translations/locale-vi.json',
'./translations/locale-zh-cn.json',
'./js/lib/openpgp.worker.min.js',
'./js/bundle.min.js',
'./view/templates.js'
]);
})
);
});
self.addEventListener('fetch', function(event) {
event.respondWith(
caches.match(event.request)
.then(function(response) {
// caches.match() always resolves
// but in case of a success the response will have a value
//console.log(response);
if (response) {
//console.log('Serve from cache');
return response;
} else {
return fetch(event.request).then(function (response) {
return response;
}, function (response) {
//console.log(response);
});
}
})
);
});
self.addEventListener('activate', function(event) {
var cacheWhitelist = [CACHE_VERSION];
event.waitUntil(
caches.keys().then(function(keyList) {
return Promise.all(keyList.map(function(key) {
if (cacheWhitelist.indexOf(key) !== -1) {
return;
}
return caches.delete(key);
}));
})
);
});
\ No newline at end of file
#!/usr/bin/env bash
# poeditor language codes: https://poeditor.com/docs/languages
apt-get update && \
apt-get install -y curl && \
curl -o src/common/data/translations/locale-de.json https://psono.jfrog.io/psono/psono/client/languages/locale-cs.json && \
curl -o src/common/data/translations/locale-de.json https://psono.jfrog.io/psono/psono/client/languages/locale-de.json && \
curl -o src/common/data/translations/locale-en.json https://psono.jfrog.io/psono/psono/client/languages/locale-en.json
curl -o src/common/data/translations/locale-en.json https://psono.jfrog.io/psono/psono/client/languages/locale-en.json && \
curl -o src/common/data/translations/locale-en.json https://psono.jfrog.io/psono/psono/client/languages/locale-es.json && \
curl -o src/common/data/translations/locale-en.json https://psono.jfrog.io/psono/psono/client/languages/locale-fi.json && \
curl -o src/common/data/translations/locale-en.json https://psono.jfrog.io/psono/psono/client/languages/locale-fr.json && \
curl -o src/common/data/translations/locale-en.json https://psono.jfrog.io/psono/psono/client/languages/locale-hr.json && \
curl -o src/common/data/translations/locale-en.json https://psono.jfrog.io/psono/psono/client/languages/locale-it.json && \
curl -o src/common/data/translations/locale-en.json https://psono.jfrog.io/psono/psono/client/languages/locale-ja.json && \
curl -o src/common/data/translations/locale-en.json https://psono.jfrog.io/psono/psono/client/languages/locale-ko.json && \
curl -o src/common/data/translations/locale-en.json https://psono.jfrog.io/psono/psono/client/languages/locale-nl.json && \
curl -o src/common/data/translations/locale-en.json https://psono.jfrog.io/psono/psono/client/languages/locale-pl.json && \
curl -o src/common/data/translations/locale-en.json https://psono.jfrog.io/psono/psono/client/languages/locale-ru.json && \
curl -o src/common/data/translations/locale-en.json https://psono.jfrog.io/psono/psono/client/languages/locale-vi.json && \
curl -o src/common/data/translations/locale-en.json https://psono.jfrog.io/psono/psono/client/languages/locale-zh-cn.json
......@@ -11,17 +11,17 @@ ARTIFACTORY_PASS = os.environ['ARTIFACTORY_PASS']
LANGUAGE_CODES = [
"af", "sq", "ar_SA", "ar_IQ", "ar_EG", "ar_LY", "ar_DZ", "ar_MA", "ar_TN", "ar_OM",
"ar_YE", "ar_SY", "ar_JO", "ar_LB", "ar_KW", "ar_AE", "ar_BH", "ar_QA", "eu", "bg",
"be", "ca", "zh_TW", "zh_CN", "zh_HK", "zh_SG", "hr", "cs", "da", "nl", "nl_BE", "en",
"en_US", "en_EG", "en_AU", "en_GB", "en_CA", "en_NZ", "en_IE", "en_ZA", "en_JM",
"en_BZ", "en_TT", "et", "fo", "fa", "fi", "fr", "fr_BE", "fr_CA", "fr_CH", "fr_LU",
"gd", "gd_IE", "de", "de_CH", "de_AT", "de_LU", "de_LI", "el", "he", "hi", "hu",
"is", "id", "it", "it_CH", "ja", "ko", "lv", "lt", "mk", "mt", "no", "pl",
"pt_BR", "pt", "rm", "ro", "ro_MO", "ru", "ru_MI", "sz", "sr", "sk", "sl", "sb",
"es", "es_AR", "es_GT", "es_CR", "es_PA", "es_DO", "es_MX", "es_VE", "es_CO",
"es_PE", "es_EC", "es_CL", "es_UY", "es_PY", "es_BO", "es_SV", "es_HN", "es_NI",
"es_PR", "sx", "sv", "sv_FI", "th", "ts", "tn", "tr", "uk", "ur", "ve", "vi", "xh",
"af", "sq", "ar-sa", "ar-iq", "ar-eg", "ar-ly", "ar-dz", "ar-ma", "ar-tn", "ar-om",
"ar-ye", "ar-sy", "ar-jo", "ar-lb", "ar-kw", "ar-ae", "ar-bh", "ar-qa", "eu", "bg",
"be", "ca", "zh-tw", "zh-cn", "zh-hk", "zh-sg", "hr", "cs", "da", "nl", "nl-be", "en",
"en-us", "en-eg", "en-au", "en-gb", "en-ca", "en-nz", "en-ie", "en-za", "en-jm",
"en-bz", "en-tt", "et", "fo", "fa", "fi", "fr", "fr-be", "fr-ca", "fr-ch", "fr-lu",
"gd", "gd-ie", "de", "de-ch", "de-at", "de-lu", "de-li", "el", "he", "hi", "hu",
"is", "id", "it", "it-ch", "ja", "ko", "lv", "lt", "mk", "mt", "no", "pl",
"pt-br", "pt", "rm", "ro", "ro-mo", "ru", "ru-mi", "sz", "sr", "sk", "sl", "sb",
"es", "es-ar", "es-gt", "es-cr", "es-pa", "es-do", "es-mx", "es-ve", "es-co",
"es-pe", "es-ec", "es-cl", "es-uy", "es-py", "es-bo", "es-sv", "es-hn", "es-ni",
"es-pr", "sx", "sv", "sv-fi", "th", "ts", "tn", "tr", "uk", "ur", "ve", "vi", "xh",
"ji", "zu"
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment