Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion i18n/i18n.reactodia-translation.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
declare module '*.reactodia-translation.json' {
const value: Record<string, Record<string, string>>;
const value: {
[group: string]: Record<string, string> | string;
};
export default value;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/coreUtils/i18n.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type * as Rdf from '../data/rdf/rdfModel';

import DefaultTranslationBundle from '../../i18n/translations/en.reactodia-translation.json';

type DefaultBundleData = Omit<typeof DefaultTranslationBundle, '$schema'>;
type DefaultBundleData = typeof DefaultTranslationBundle;

/**
* Translation strings bundle (content).
Expand Down Expand Up @@ -197,7 +197,7 @@ type TranslationPartial<T> = {
[K in keyof T]?: Partial<T[K]>;
};

type TranslationKeyOf<T> = DeepPath<T>;
type TranslationKeyOf<T> = DeepPath<Omit<T, '$schema'>>;

type DeepPath<T> = T extends object ? (
{
Expand Down
Loading