Skip to content

Commit

Permalink
refactor(soffit-pwa): use _initLocale
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Jan 18, 2023
1 parent 5aff42e commit a083e7d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions uniquely/soffit-site-pwa/src/alwatr-pwa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,12 @@ export class AlwatrPwaRoot extends AlwatrPwaElement {
},
};

override firstUpdated(changedProperties: PropertyValues<this>): void {
super.firstUpdated(changedProperties);

protected override _initLocale(): void {
l10n.config.defaultLocale = {
code: 'fa-IR',
direction: 'rtl',
language: 'fa',
};
l10n.setLocal();
super._initLocale();
}
}

0 comments on commit a083e7d

Please sign in to comment.