Fix languageFound type error on build
This commit is contained in:
parent
54ae3bf215
commit
68dc7c2555
2 changed files with 8 additions and 0 deletions
|
@ -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");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue