warnings
This commit is contained in:
parent
7b2b78c438
commit
f4ed967378
|
|
@ -1,22 +1,22 @@
|
|||
import i18n from "i18next";
|
||||
import { initReactI18next } from "react-i18next";
|
||||
// import i18n from "i18next";
|
||||
// import { initReactI18next } from "react-i18next";
|
||||
|
||||
import en from "./localization/en/translation.json";
|
||||
import ru from "./localization/ru/translation.json";
|
||||
import tm from "./localization/en/translation.json";
|
||||
import { Api } from "./api/Api";
|
||||
// import en from "./localization/en/translation.json";
|
||||
// import ru from "./localization/ru/translation.json";
|
||||
// import tm from "./localization/en/translation.json";
|
||||
// import { Api } from "./api/Api";
|
||||
|
||||
const language = new Api("").language;
|
||||
const resources = {
|
||||
EN: en,
|
||||
RU: ru,
|
||||
TM: tm,
|
||||
};
|
||||
i18n.use(initReactI18next).init({
|
||||
resources,
|
||||
lng: language,
|
||||
interpolation: {
|
||||
escapeValue: false,
|
||||
},
|
||||
});
|
||||
export default i18n;
|
||||
// const language = new Api("").language;
|
||||
// const resources = {
|
||||
// EN: en,
|
||||
// RU: ru,
|
||||
// TM: tm,
|
||||
// };
|
||||
// i18n.use(initReactI18next).init({
|
||||
// resources,
|
||||
// lng: language,
|
||||
// interpolation: {
|
||||
// escapeValue: false,
|
||||
// },
|
||||
// });
|
||||
// export default i18n;
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ export const newsScrollInitialState = {
|
|||
name: "",
|
||||
},
|
||||
],
|
||||
video: null,
|
||||
powerseo_title: "",
|
||||
powerseo_description: "",
|
||||
powerseo_keywords: "",
|
||||
|
|
@ -81,6 +82,7 @@ export const postInitialState = {
|
|||
slug: "",
|
||||
excerpt: "",
|
||||
published_at: "",
|
||||
video: null,
|
||||
featured_images: [
|
||||
{
|
||||
id: -1,
|
||||
|
|
@ -140,6 +142,7 @@ export const featuredInitialState = {
|
|||
slug: "",
|
||||
excerpt: "",
|
||||
published_at: "",
|
||||
video: null,
|
||||
featured_images: [
|
||||
{
|
||||
id: -1,
|
||||
|
|
|
|||
Loading…
Reference in New Issue