Skip to content

Commit

Permalink
fix(transloco): use fallback translation
Browse files Browse the repository at this point in the history
  • Loading branch information
AmitMY committed Oct 23, 2024
1 parent e3812d6 commit 679cce8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@
"express": "4.21.1",
"express-async-errors": "3.1.1",
"firebase-admin": "12.6.0",
"firebase-functions": "6.0.1",
"firebase-functions": "6.1.0",
"http-errors": "2.0.0",
"http-proxy-middleware": "^3.0.3",
"node-fetch": "2.6.7",
"openai": "4.68.1",
"openai": "4.68.2",
"request-ip": "3.3.0"
},
"devDependencies": {
"@firebase/firestore-types": "3.0.2",
"@firebase/rules-unit-testing": "4.0.0",
"@types/http-errors": "2.0.4",
"@types/jest": "29.5.13",
"@types/jest": "29.5.14",
"@types/node-fetch": "2.6.11",
"@types/request-ip": "0.0.41",
"@typescript-eslint/eslint-plugin": "8.11.0",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"cld3-asm": "4.0.0",
"comlink": "4.4.1",
"filesize": "9.0.11",
"firebase": "11.0.0",
"firebase": "11.0.1",
"flag-icons": "7.2.3",
"ionicons": "7.4.0",
"leaflet": "1.9.4",
Expand All @@ -103,7 +103,7 @@
"swiper": "11.1.14",
"three": "0.169.0",
"tslib": "2.8.0",
"web-vitals": "4.2.3",
"web-vitals": "4.2.4",
"webm-muxer": "5.0.2",
"zone.js": "0.15.0"
},
Expand Down
4 changes: 4 additions & 0 deletions src/app/core/modules/transloco/transloco.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ import {SITE_LANGUAGES} from './languages';
fallbackLang: 'en',
reRenderOnLangChange: true,
prodMode: !isDevMode(),
missingHandler: {
// It will use the first language set in the `fallbackLang` property
useFallbackTranslation: true,
},
},
loader: HttpLoader,
}),
Expand Down
2 changes: 1 addition & 1 deletion src/assets/i18n/he.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
"licenses": {
"title": "תוכנה ורישיונות"
},
"title": "מִשׁפָּטִי"
"title": "משפטי"
},
"benchmark": {
"title": "Benchmark",
Expand Down

0 comments on commit 679cce8

Please sign in to comment.