Skip to content

Commit

Permalink
test [PWA]: cache json language translation files
Browse files Browse the repository at this point in the history
  • Loading branch information
Moamal-2000 committed Dec 13, 2024
1 parent f811e2e commit 59aa5ed
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion public/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@

// Variables
const CACHE_NAME = "e-commerce-v8";
const ASSETS = ["/", "/index.html"];
const ASSETS = [
"/",
"/index.html",
"/locale/en/translation.json",
"/locale/ar/translation.json",
"/locale/fr/translation.json",
"/locale/hl/translation.json",
"/locale/hu/translation.json",
"/locale/ja/translation.json",
"/locale/ru/translation.json",
];

// Functions
async function cacheAssets() {
Expand Down

0 comments on commit 59aa5ed

Please sign in to comment.