diff --git a/inlang/source-code/settings-component/src/mock/project.ts b/inlang/source-code/settings-component/src/mock/project.ts index 87c0b04345..1b18d33887 100644 --- a/inlang/source-code/settings-component/src/mock/project.ts +++ b/inlang/source-code/settings-component/src/mock/project.ts @@ -44,8 +44,12 @@ export const mockProject = { plugins: () => [ { id: "plugin.inlang.i18next", - displayName: "i18next", - description: "i18next", + displayName: { + en: "i18next", + }, + description: { + en: "i18next", + }, module: "https://cdn.jsdelivr.net/npm/@inlang/plugin-i18next@4/dist/index.js", settingsSchema: { type: "object", @@ -130,15 +134,23 @@ export const mockProject = { messageLintRules: () => [ { id: "messageLintRule.inlang.emptyPattern", - displayName: "Empty Pattern", - description: "Empty Pattern", + displayName: { + en: "Empty Pattern", + }, + description: { + en: "Empty Pattern", + }, module: "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-empty-pattern@latest/dist/index.js", }, { id: "messageLintRule.inlang.identicalPattern", - displayName: "Identical Pattern", - description: "Identical Pattern", + displayName: { + en: "Identical Pattern", + }, + description: { + en: "Identical Pattern", + }, module: "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-identical-pattern@latest/dist/index.js", settingsSchema: { @@ -157,15 +169,23 @@ export const mockProject = { }, { id: "messageLintRule.inlang.missingTranslation", - displayName: "Missing Translation", - description: "Missing Translation", + displayName: { + en: "Missing Translation", + }, + description: { + en: "Missing Translation", + }, module: "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-missing-translation@latest/dist/index.js", }, { id: "messageLintRule.inlang.messageWithoutSource", - displayName: "Without Source", - description: "Without Source", + displayName: { + en: "Message Without Source", + }, + description: { + en: "Message Without Source", + }, module: "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-without-source@latest/dist/index.js", }, diff --git a/inlang/source-code/settings-component/src/stories/inlang-settings.ts b/inlang/source-code/settings-component/src/stories/inlang-settings.ts index 170f638e81..9144ecccc0 100644 --- a/inlang/source-code/settings-component/src/stories/inlang-settings.ts +++ b/inlang/source-code/settings-component/src/stories/inlang-settings.ts @@ -185,7 +185,7 @@ export default class InlangSettings extends LitElement { ${Object.entries(this._projectSettingProperties).map(([key, value]) => { return value.schema?.properties && this._newSettings ? html`
-

${value.meta?.displayName || key}

+

${(value.meta && (value.meta?.displayName as { en: string }).en) || key}

${Object.entries(value.schema.properties).map(([property, schema]) => { if (property === "$schema" || property === "modules" || property === "experimental") return undefined diff --git a/inlang/source-code/settings-component/src/stories/input-fields/object/lint-rule-level-object-input.ts b/inlang/source-code/settings-component/src/stories/input-fields/object/lint-rule-level-object-input.ts index f6f44c5468..6de080cedf 100644 --- a/inlang/source-code/settings-component/src/stories/input-fields/object/lint-rule-level-object-input.ts +++ b/inlang/source-code/settings-component/src/stories/input-fields/object/lint-rule-level-object-input.ts @@ -107,7 +107,7 @@ export class LintRuleLevelObjectInput extends LitElement { ` })} -

${module.displayName}

+

${(module.displayName as { en: string }).en}

` : undefined })}