Allow dynamic locale imports for web (#1971)
* allow dynamic locale imports for web * remove unnecessary file
This commit is contained in:
parent
43c8fb6f03
commit
4b59a21cac
2 changed files with 29 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue