Add language switcher on settings

This commit is contained in:
Nolway 2022-01-07 01:50:47 +01:00 committed by Alexis Faizeau
parent 6ff4d6d634
commit 54ae3bf215
7 changed files with 91 additions and 36 deletions

View file

@ -7,8 +7,7 @@ import sveltePreprocess from "svelte-preprocess";
import type { Configuration } from "webpack";
import webpack from "webpack";
import type WebpackDevServer from "webpack-dev-server";
import type { LanguageFound } from "./src/Translator/TranslationCompiler";
import { fallbackLanguageObject, languages, languagesObject } from "./src/Translator/TranslationCompiler";
import { fallbackLanguageObject, languages } from "./src/Translator/TranslationCompiler";
const MergeJsonWebpackPlugin = require("merge-jsons-webpack-plugin");
@ -223,7 +222,7 @@ module.exports = {
}),
new webpack.DefinePlugin({
FALLBACK_LANGUAGE_OBJECT: JSON.stringify(fallbackLanguageObject),
LANGUAGES: JSON.stringify(languagesObject),
LANGUAGES: JSON.stringify(languages),
}),
new MergeJsonWebpackPlugin({
output: {