dev #34
@ -4,7 +4,7 @@ import { createContext, useContext, useState, useEffect, useCallback, useRef, Re
|
||||
import { DEFAULT_LANGUAGE } from './config';
|
||||
import { en } from './translations/en';
|
||||
import { de } from './translations/de';
|
||||
import { sl } from './translations/sl';
|
||||
// import { sl } from './translations/sl';
|
||||
import { flattenObject } from './dynamicTranslations';
|
||||
import { authFetch } from '../utils/authFetch';
|
||||
import useAuthStore from '../store/authStore';
|
||||
@ -23,7 +23,7 @@ type TranslationFilesPayload = {
|
||||
const builtInTranslations: Record<string, Record<string, unknown>> = {
|
||||
en: en as unknown as Record<string, unknown>,
|
||||
de: de as unknown as Record<string, unknown>,
|
||||
sl: sl as unknown as Record<string, unknown>,
|
||||
// sl: sl as unknown as Record<string, unknown>,
|
||||
};
|
||||
|
||||
const APP_LANGUAGE_STORAGE_KEY = 'pp-selected-language';
|
||||
@ -87,12 +87,12 @@ export function I18nProvider({ children }: I18nProviderProps) {
|
||||
languages: [
|
||||
{ code: 'en', name: 'English' },
|
||||
{ code: 'de', name: 'Deutsch' },
|
||||
{ code: 'sl', name: 'Slovenian' },
|
||||
// { code: 'sl', name: 'Slovenian' },
|
||||
],
|
||||
translations: {
|
||||
en: enFlat,
|
||||
de: flattenObject(de as unknown as Record<string, unknown>),
|
||||
sl: flattenObject(sl as unknown as Record<string, unknown>),
|
||||
// sl: flattenObject(sl as unknown as Record<string, unknown>),
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user