Merge pull request #2950 from SillyTavern/moment-locales

Localize chat timestamps
This commit is contained in:
Cohee
2024-10-05 20:27:39 +03:00
committed by GitHub
6 changed files with 5 additions and 4 deletions

View File

@ -215,6 +215,7 @@ function addLanguagesToDropdown() {
}
export async function initLocales() {
moment.locale(localeFile);
langs = await fetch('/locales/lang.json').then(response => response.json());
localeData = await getLocaleData(localeFile);
applyLocale();