Add Portuguese (Brazil) translation
Adds site/i18n/pt.js with all 2429 strings, registers Português in the language list (picked automatically for pt-* browsers), caches it in the service worker, and runs the full screen tour in Portuguese in the tests.
This commit is contained in:
parent
388b12d901
commit
eb7f4a8f8c
7 changed files with 2441 additions and 4 deletions
|
|
@ -2,7 +2,7 @@
|
|||
The page always comes from the network when there is one, so a new release shows up on the
|
||||
next visit; everything else is served from the cache and refreshed in the background. */
|
||||
const CACHE = 'sot-__VERSION__';
|
||||
const CORE = ['/', '/index.html', '/site.webmanifest', '/favicon.svg', '/icon-192.png', '/icon-512.png', '/apple-touch-icon.png', '/i18n/it.js?v=__VERSION__'];
|
||||
const CORE = ['/', '/index.html', '/site.webmanifest', '/favicon.svg', '/icon-192.png', '/icon-512.png', '/apple-touch-icon.png', '/i18n/it.js?v=__VERSION__', '/i18n/pt.js?v=__VERSION__'];
|
||||
|
||||
self.addEventListener('install', (e) => {
|
||||
e.waitUntil(caches.open(CACHE).then((c) => c.addAll(CORE)).then(() => self.skipWaiting()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue