Fix languageFound type error on build

This commit is contained in:
Alexis Faizeau 2022-01-10 16:12:58 +01:00
parent 54ae3bf215
commit 68dc7c2555
2 changed files with 8 additions and 0 deletions

View file

@ -1,5 +1,12 @@
import fs from "fs";
export type LanguageFound = {
id: string;
language: string;
country: string;
default: boolean;
};
const translationsBasePath = "./translations";
const fallbackLanguage = process.env.FALLBACK_LANGUAGE || "en-US";

View file

@ -8,6 +8,7 @@ import type { Configuration } from "webpack";
import webpack from "webpack";
import type WebpackDevServer from "webpack-dev-server";
import { fallbackLanguageObject, languages } from "./src/Translator/TranslationCompiler";
import type { LanguageFound } from "./src/Translator/TranslationCompiler";
const MergeJsonWebpackPlugin = require("merge-jsons-webpack-plugin");