mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-11-13 17:08:20 +00:00
feat: separate i18n dict pages
This commit is contained in:
@@ -12,10 +12,14 @@ export const de: Dict = {
|
||||
errors: {
|
||||
sourceRequired: "Quelle erforderlich",
|
||||
},
|
||||
tools: {
|
||||
pages: {
|
||||
addBorder: {
|
||||
title: "Rahmen hinzufügen",
|
||||
description: "Zeichnet einen {kind}-Rahmen.",
|
||||
},
|
||||
},
|
||||
tools: {
|
||||
addBorder: {
|
||||
results: {
|
||||
done: "Rahmen {what}",
|
||||
},
|
||||
|
||||
@@ -6,11 +6,15 @@ export type Dict = {
|
||||
header: Record<string, string>;
|
||||
home: Record<string, string>;
|
||||
errors: Record<string, string>;
|
||||
pages?: Record<string, PageStrings>;
|
||||
tools: Record<string, ToolStrings>;
|
||||
};
|
||||
|
||||
export type ToolStrings = {
|
||||
export type PageStrings = {
|
||||
title?: string;
|
||||
description?: string;
|
||||
};
|
||||
|
||||
export type ToolStrings = {
|
||||
results?: Record<string, string>;
|
||||
};
|
||||
|
||||
@@ -12,10 +12,10 @@ export const en: Dict = {
|
||||
errors: {
|
||||
sourceRequired: "Source image required",
|
||||
},
|
||||
// Базовая локаль: тексты страниц берутся из EN-строк реестра.
|
||||
pages: {},
|
||||
tools: {
|
||||
addBorder: {
|
||||
title: "Add border",
|
||||
description: "Draws a {kind} frame.",
|
||||
results: {
|
||||
done: "Border {what}",
|
||||
},
|
||||
|
||||
@@ -12,10 +12,14 @@ export const ru: Dict = {
|
||||
errors: {
|
||||
sourceRequired: "Нужен исходник",
|
||||
},
|
||||
tools: {
|
||||
pages: {
|
||||
addBorder: {
|
||||
title: "Добавить рамку",
|
||||
description: "Рисует рамку {kind}.",
|
||||
},
|
||||
},
|
||||
tools: {
|
||||
addBorder: {
|
||||
results: {
|
||||
done: "Рамка {what}",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user