|
|
@ -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); |
|
|
|