code format

This commit is contained in:
josc146
2023-05-22 10:52:06 +08:00
parent 035c6ab8de
commit bbad153ecb
28 changed files with 429 additions and 429 deletions

View File

@@ -1,7 +1,7 @@
import i18n, {changeLanguage} from 'i18next';
import {initReactI18next} from 'react-i18next';
import {resources} from './resources';
import {getUserLanguage} from '../utils';
import i18n, { changeLanguage } from 'i18next';
import { initReactI18next } from 'react-i18next';
import { resources } from './resources';
import { getUserLanguage } from '../utils';
i18n.use(initReactI18next).init({
resources,

View File

@@ -1,6 +1,6 @@
import i18n, {changeLanguage} from 'i18next';
import {resources} from './resources';
import {getUserLanguage} from '../utils';
import i18n, { changeLanguage } from 'i18next';
import { resources } from './resources';
import { getUserLanguage } from '../utils';
i18n.init({
resources

View File

@@ -1,4 +1,4 @@
import zhHans from './zh-hans/main.json'
import zhHans from './zh-hans/main.json';
export const resources = {
zh: {
@@ -34,4 +34,4 @@ export const resources = {
// zhHant: {
// translation: zhHant,
// },
}
};