Browse Source

Fix applying changed time format

master
Eduard Kuzmenko 3 years ago
parent
commit
82df70e79f
  1. 1
      src/lib/langPack.ts

1
src/lib/langPack.ts

@ -114,6 +114,7 @@ namespace I18n {
timeFormat = format; timeFormat = format;
if(haveToUpdate) { if(haveToUpdate) {
cachedDateTimeFormats.clear();
const elements = Array.from(document.querySelectorAll(`.i18n`)) as HTMLElement[]; const elements = Array.from(document.querySelectorAll(`.i18n`)) as HTMLElement[];
elements.forEach(element => { elements.forEach(element => {
const instance = weakMap.get(element); const instance = weakMap.get(element);

Loading…
Cancel
Save