diff --git a/i18n/i18n.reactodia-translation.d.ts b/i18n/i18n.reactodia-translation.d.ts index 7e394bb1..d38d587e 100644 --- a/i18n/i18n.reactodia-translation.d.ts +++ b/i18n/i18n.reactodia-translation.d.ts @@ -1,4 +1,6 @@ declare module '*.reactodia-translation.json' { - const value: Record>; + const value: { + [group: string]: Record | string; + }; export default value; } diff --git a/package.json b/package.json index 6f4f1a9a..6588f6cb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reactodia/workspace", - "version": "0.34.0", + "version": "0.34.0-next", "description": "Reactodia Workspace -- library for visual interaction with graphs in a form of a diagram.", "repository": { "type": "git", diff --git a/src/coreUtils/i18n.tsx b/src/coreUtils/i18n.tsx index 3106aaa0..ce8c4937 100644 --- a/src/coreUtils/i18n.tsx +++ b/src/coreUtils/i18n.tsx @@ -8,7 +8,7 @@ import type * as Rdf from '../data/rdf/rdfModel'; import DefaultTranslationBundle from '../../i18n/translations/en.reactodia-translation.json'; -type DefaultBundleData = Omit; +type DefaultBundleData = typeof DefaultTranslationBundle; /** * Translation strings bundle (content). @@ -197,7 +197,7 @@ type TranslationPartial = { [K in keyof T]?: Partial; }; -type TranslationKeyOf = DeepPath; +type TranslationKeyOf = DeepPath>; type DeepPath = T extends object ? ( {