130 changed files with 413 additions and 5046 deletions
@ -0,0 +1,14 @@ |
|||||||
|
import { setLocale } from "./locales"; |
||||||
|
|
||||||
|
export async function loadLocale() { |
||||||
|
const locale = document.querySelector('html').lang || 'en'; |
||||||
|
|
||||||
|
const localeData = await import( |
||||||
|
/* webpackMode: "lazy" */ |
||||||
|
/* webpackChunkName: "locale/[request]" */ |
||||||
|
/* webpackInclude: /\.json$/ */ |
||||||
|
/* webpackPreload: true */ |
||||||
|
`mastodon/locales/${locale}.json`); |
||||||
|
|
||||||
|
setLocale({ messages: localeData }); |
||||||
|
} |
||||||
File diff suppressed because it is too large
Load Diff
@ -1,5 +0,0 @@ |
|||||||
[ |
|
||||||
"account.badges.bot", |
|
||||||
"compose_form.publish_loud", |
|
||||||
"search_results.hashtags" |
|
||||||
] |
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue