Feature/use alias for imports (#352)
* Use alias "@" for imports * Use alias "@" for imports - Fix imports * Use alias "@" for imports - Prevent faulty "import/extensions" linting issue For some reason the rule throws an error for alias imports * Use alias "@" for imports - Update "no-relative-imports" eslint rule
This commit is contained in:
2
src/i18n/i18next.d.ts
vendored
2
src/i18n/i18next.d.ts
vendored
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
import 'i18next';
|
||||
import resources from 'i18n/translations';
|
||||
import resources from '@/i18n/translations';
|
||||
|
||||
declare module 'i18next' {
|
||||
interface CustomTypeOptions {
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
|
||||
import { use } from 'i18next';
|
||||
import { initReactI18next } from 'react-i18next';
|
||||
import resources from 'i18n/translations';
|
||||
import LanguageDetector from 'i18next-browser-languagedetector';
|
||||
import resources from '@/i18n/translations';
|
||||
|
||||
const i18n = use(initReactI18next)
|
||||
.use(LanguageDetector)
|
||||
|
||||
@@ -6,17 +6,17 @@
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
import en from 'i18n/locale/en.json';
|
||||
import en from '@/i18n/locale/en.json';
|
||||
|
||||
import ar from 'i18n/locale/ar.json';
|
||||
import de from 'i18n/locale/de.json';
|
||||
import es from 'i18n/locale/es.json';
|
||||
import fr from 'i18n/locale/fr.json';
|
||||
import ja from 'i18n/locale/ja.json';
|
||||
import pt from 'i18n/locale/pt.json';
|
||||
import uk from 'i18n/locale/uk.json';
|
||||
import zh_Hans from 'i18n/locale/zh_Hans.json';
|
||||
import zh_Hant from 'i18n/locale/zh_Hant.json';
|
||||
import ar from '@/i18n/locale/ar.json';
|
||||
import de from '@/i18n/locale/de.json';
|
||||
import es from '@/i18n/locale/es.json';
|
||||
import fr from '@/i18n/locale/fr.json';
|
||||
import ja from '@/i18n/locale/ja.json';
|
||||
import pt from '@/i18n/locale/pt.json';
|
||||
import uk from '@/i18n/locale/uk.json';
|
||||
import zh_Hans from '@/i18n/locale/zh_Hans.json';
|
||||
import zh_Hant from '@/i18n/locale/zh_Hant.json';
|
||||
|
||||
const translationHelper = <T>(lng: T) => ({
|
||||
translation: lng,
|
||||
|
||||
Reference in New Issue
Block a user