fix: suit i18n with mocha and optimize translation

- use `import * as i18next from 'i18next';` instead of `import i18next from 'i18next';` and add an specific env to bypass mocha test
- optimized several translations
This commit is contained in:
r-q
2022-07-22 21:35:25 +08:00
committed by Anton Belodedenko
parent eb5f5bbb9e
commit 0f10f2d483
19 changed files with 46 additions and 36 deletions

View File

@@ -66,7 +66,7 @@ import { DriveSelector } from '../drive-selector/drive-selector';
import { DrivelistDrive } from '../../../../shared/drive-constraints';
import axios, { AxiosRequestConfig } from 'axios';
import { isJson } from '../../../../shared/utils';
import i18next from 'i18next';
import * as i18next from 'i18next';
const recentUrlImagesKey = 'recentUrlImages';