mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-01 09:10:24 -06:00
fix: tolgee config (#5567)
This commit is contained in:
committed by
GitHub
parent
4dc2c5e3df
commit
da44fef89d
@@ -3,13 +3,13 @@ module.exports = {
|
||||
ignorePatterns: ["**/package.json", "**/tsconfig.json"],
|
||||
overrides: [
|
||||
{
|
||||
files: ["lib/messages/**/*.json"],
|
||||
files: ["locales/*.json"],
|
||||
plugins: ["i18n-json"],
|
||||
rules: {
|
||||
"i18n-json/identical-keys": [
|
||||
"error",
|
||||
{
|
||||
filePath: require("path").join(__dirname, "messages", "en-US.json"),
|
||||
filePath: require("path").join(__dirname, "locales", "en-US.json"),
|
||||
checkExtraKeys: false,
|
||||
checkMissingKeys: true,
|
||||
},
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -22,7 +22,7 @@ export const getRatingNumberOptionColor = (range: number, idx: number): string =
|
||||
const defaultLocale = "en-US";
|
||||
|
||||
const getMessages = (locale: string): Record<string, string> => {
|
||||
const messages = require(`@/lib/messages/${locale}.json`) as {
|
||||
const messages = require(`@/locales/${locale}.json`) as {
|
||||
emails: Record<string, string>;
|
||||
};
|
||||
return messages.emails;
|
||||
|
||||
@@ -16,12 +16,12 @@ export function TolgeeBase() {
|
||||
apiKey,
|
||||
apiUrl,
|
||||
staticData: {
|
||||
"en-US": () => import("@/lib/messages/en-US.json"),
|
||||
"de-DE": () => import("@/lib/messages/de-DE.json"),
|
||||
"fr-FR": () => import("@/lib/messages/fr-FR.json"),
|
||||
"pt-BR": () => import("@/lib/messages/pt-BR.json"),
|
||||
"pt-PT": () => import("@/lib/messages/pt-PT.json"),
|
||||
"zh-Hant-TW": () => import("@/lib/messages/zh-Hant-TW.json"),
|
||||
"en-US": () => import("@/locales/en-US.json"),
|
||||
"de-DE": () => import("@/locales/de-DE.json"),
|
||||
"fr-FR": () => import("@/locales/fr-FR.json"),
|
||||
"pt-BR": () => import("@/locales/pt-BR.json"),
|
||||
"pt-PT": () => import("@/locales/pt-PT.json"),
|
||||
"zh-Hant-TW": () => import("@/locales/zh-Hant-TW.json"),
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user