Allow dynamic locale imports for web (#1971)

* allow dynamic locale imports for web

* remove unnecessary file
This commit is contained in:
Ansh 2023-11-24 12:35:25 -08:00 committed by GitHub
parent 43c8fb6f03
commit 4b59a21cac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 1 deletions

View file

@ -18,7 +18,6 @@ export const defaultLocale = 'en'
* @param locale any locale string
*/
export async function dynamicActivate(locale: string) {
console.log('dynamicActivate', locale)
if (locale === 'en') {
i18n.loadAndActivate({locale, messages: messagesEn})
return