Skip to content

Commit

Permalink
Language issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhikachhawa24 committed Jun 18, 2024
1 parent 5b94e88 commit e4f82f0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ export class AppModule {
constructor(private translate: TranslateService, private storage: StorageService) {
this.findSiteSubDomain();
this.storage.getData('lang').then(lang =>{
let currentLang = lang || 'hi'; // Use 'en' as a default if lang is undefined
this.translate.setDefaultLang(currentLang);
console.log(lang);
if(!lang)
{
Expand Down
2 changes: 1 addition & 1 deletion www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
<body>
<app-root></app-root>
<noscript>Please enable JavaScript to continue using this application.</noscript>
<script src="runtime.9292150e0d83ae8f.js" type="module"></script><script src="polyfills.8aa0ed51fddab033.js" type="module"></script><script src="scripts.f969b614b9decf68.js" defer></script><script src="main.60e8bf88e57e4181.js" type="module"></script></body>
<script src="runtime.9292150e0d83ae8f.js" type="module"></script><script src="polyfills.8aa0ed51fddab033.js" type="module"></script><script src="scripts.f969b614b9decf68.js" defer></script><script src="main.03254995ece01acd.js" type="module"></script></body>

</html>
1 change: 1 addition & 0 deletions www/main.03254995ece01acd.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion www/main.60e8bf88e57e4181.js

This file was deleted.

8 changes: 4 additions & 4 deletions www/ngsw.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"configVersion": 1,
"timestamp": 1718608053813,
"timestamp": 1718684280558,
"index": "/index.html",
"assetGroups": [
{
Expand Down Expand Up @@ -101,7 +101,7 @@
"/9977.dfb6af23e31fcb21.js",
"/common.d5afa357a12054a6.js",
"/index.html",
"/main.60e8bf88e57e4181.js",
"/main.03254995ece01acd.js",
"/manifest.webmanifest",
"/polyfills-core-js.c76198334f717402.js",
"/polyfills-dom.bf542500b6fca113.js",
Expand Down Expand Up @@ -845,8 +845,8 @@
"/assets/timer.svg": "57b27e5d93af2aabd1077ecd4c70bcab678f4472",
"/assets/user.svg": "2dc572771661b2ccd3ea4ae06bf768778144cbec",
"/common.d5afa357a12054a6.js": "4def9eb63d9c0e8e525a0fc947d54f807f1e5f88",
"/index.html": "f30d32db95da723f72b73ad3c3d05ebfae4409c8",
"/main.60e8bf88e57e4181.js": "64cf501ab4b8d2dfa07cc6c48652fd722859acd9",
"/index.html": "f79896295e01ce0ec17002958c6a0d7d2b5825b3",
"/main.03254995ece01acd.js": "37c6678a42470dc729ef4888b92709e352320457",
"/manifest.webmanifest": "5a927f2c991153c4e1fb8dd9fd7845bbe00ba537",
"/polyfills-core-js.c76198334f717402.js": "d6e270a2944b6a95a9b97dafd25599ba825e8d7f",
"/polyfills-dom.bf542500b6fca113.js": "3fa333db66c8050f12e99d977f5098a6de8dd593",
Expand Down

0 comments on commit e4f82f0

Please sign in to comment.