Fix languageFound type error on build
This commit is contained in:
@@ -1,5 +1,12 @@
|
|||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
|
|
||||||
|
export type LanguageFound = {
|
||||||
|
id: string;
|
||||||
|
language: string;
|
||||||
|
country: string;
|
||||||
|
default: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
const translationsBasePath = "./translations";
|
const translationsBasePath = "./translations";
|
||||||
const fallbackLanguage = process.env.FALLBACK_LANGUAGE || "en-US";
|
const fallbackLanguage = process.env.FALLBACK_LANGUAGE || "en-US";
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import type { Configuration } from "webpack";
|
|||||||
import webpack from "webpack";
|
import webpack from "webpack";
|
||||||
import type WebpackDevServer from "webpack-dev-server";
|
import type WebpackDevServer from "webpack-dev-server";
|
||||||
import { fallbackLanguageObject, languages } from "./src/Translator/TranslationCompiler";
|
import { fallbackLanguageObject, languages } from "./src/Translator/TranslationCompiler";
|
||||||
|
import type { LanguageFound } from "./src/Translator/TranslationCompiler";
|
||||||
|
|
||||||
const MergeJsonWebpackPlugin = require("merge-jsons-webpack-plugin");
|
const MergeJsonWebpackPlugin = require("merge-jsons-webpack-plugin");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user