Fix applying changed time format
This commit is contained in:
parent
0a276cb59e
commit
82df70e79f
@ -114,6 +114,7 @@ namespace I18n {
|
||||
timeFormat = format;
|
||||
|
||||
if(haveToUpdate) {
|
||||
cachedDateTimeFormats.clear();
|
||||
const elements = Array.from(document.querySelectorAll(`.i18n`)) as HTMLElement[];
|
||||
elements.forEach(element => {
|
||||
const instance = weakMap.get(element);
|
||||
|
Loading…
x
Reference in New Issue
Block a user