From 8a2872931aeafab8c8a0c5e1d904fc06313a74a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20=C5=81asi=C5=84ski?= Date: Sat, 18 May 2024 23:55:34 +0200 Subject: [PATCH 1/2] chore: add i18n support to pl and is --- packages/core/src/i18n/locales/index.ts | 2 + packages/core/src/i18n/locales/is.ts | 195 ++++++++++++++++++++++++ packages/core/src/i18n/locales/pl.ts | 195 ++++++++++++++++++++++++ 3 files changed, 392 insertions(+) create mode 100644 packages/core/src/i18n/locales/is.ts create mode 100644 packages/core/src/i18n/locales/pl.ts diff --git a/packages/core/src/i18n/locales/index.ts b/packages/core/src/i18n/locales/index.ts index 29036116b8..672bd5a315 100644 --- a/packages/core/src/i18n/locales/index.ts +++ b/packages/core/src/i18n/locales/index.ts @@ -2,3 +2,5 @@ export * from "./en"; export * from "./nl"; export * from "./zh"; export * from "./fr"; +export * from "./pl"; +export * from "./is"; \ No newline at end of file diff --git a/packages/core/src/i18n/locales/is.ts b/packages/core/src/i18n/locales/is.ts new file mode 100644 index 0000000000..9d3e8ab6bd --- /dev/null +++ b/packages/core/src/i18n/locales/is.ts @@ -0,0 +1,195 @@ +export const is = { + slash_menu: { + heading: { + title: "Fyrirsögn 1", + subtext: "Notað fyrir efstu fyrirsögn", + aliases: ["h", "fyrirsogn1", "h1"], + group: "Fyrirsagnir", + }, + heading_2: { + title: "Fyrirsögn 2", + subtext: "Notað fyrir lykilhluta", + aliases: ["h2", "fyrirsogn2", "undirfyrirsogn"], + group: "Fyrirsagnir", + }, + heading_3: { + title: "Fyrirsögn 3", + subtext: "Notað fyrir undirhluta og hópfyrirsagnir", + aliases: ["h3", "fyrirsogn3", "undirfyrirsogn"], + group: "Fyrirsagnir", + }, + numbered_list: { + title: "Númeruð listi", + subtext: "Notað til að birta númeraðan lista", + aliases: ["ol", "li", "listi", "numeradurlisti"], + group: "Grunnblokkar", + }, + bullet_list: { + title: "Punktalisti", + subtext: "Notað til að birta óraðaðan lista", + aliases: ["ul", "li", "listi", "punktalisti"], + group: "Grunnblokkar", + }, + paragraph: { + title: "Málsgrein", + subtext: "Notað fyrir meginmál skjalsins", + aliases: ["p", "malsgrein"], + group: "Grunnblokkar", + }, + table: { + title: "Tafla", + subtext: "Notað fyrir töflur", + aliases: ["tafla"], + group: "Ítarlegt", + }, + image: { + title: "Mynd", + subtext: "Settu inn mynd", + aliases: [ + "mynd", + "myndaupphlaed", + "upphlaed", + "img", + "mynd", + "media", + "url", + "drive", + "dropbox", + ], + group: "Miðlar", + }, + }, + placeholders: { + default: "Sláðu inn texta eða skrifaðu '/' fyrir skipanir", + heading: "Fyrirsögn", + bulletListItem: "Listi", + numberedListItem: "Listi", + }, + image: { + add_button: "Bæta við mynd", + }, + side_menu: { + add_block_label: "Bæta við blokki", + drag_handle_label: "Opna blokkarvalmynd", + }, + drag_handle: { + delete_menuitem: "Eyða", + colors_menuitem: "Litir", + }, + table_handle: { + delete_column_menuitem: "Eyða dálki", + delete_row_menuitem: "Eyða röð", + add_left_menuitem: "Bæta dálki við til vinstri", + add_right_menuitem: "Bæta dálki við til hægri", + add_above_menuitem: "Bæta röð við fyrir ofan", + add_below_menuitem: "Bæta röð við fyrir neðan", + }, + suggestion_menu: { + no_items_title: "Engir hlutir fundust", + loading: "Hleður…", + }, + color_picker: { + text_title: "Texti", + background_title: "Bakgrunnur", + colors: { + default: "Sjálfgefið", + gray: "Grár", + brown: "Brúnn", + red: "Rauður", + orange: "Appelsínugulur", + yellow: "Gulur", + green: "Grænn", + blue: "Blár", + purple: "Fjólublár", + pink: "Bleikur", + }, + }, + + formatting_toolbar: { + bold: { + tooltip: "Feitletrað", + secondary_tooltip: "Mod+B", + }, + italic: { + tooltip: "Skáletrað", + secondary_tooltip: "Mod+I", + }, + underline: { + tooltip: "Undirstrikað", + secondary_tooltip: "Mod+U", + }, + strike: { + tooltip: "Yfirstrikað", + secondary_tooltip: "Mod+Shift+X", + }, + code: { + tooltip: "Kóði", + secondary_tooltip: "", + }, + colors: { + tooltip: "Litir", + }, + link: { + tooltip: "Búa til tengil", + secondary_tooltip: "Mod+K", + }, + image_caption: { + tooltip: "Breyta myndatexta", + input_placeholder: "Breyta myndatexta", + }, + image_replace: { + tooltip: "Skipta um mynd", + }, + nest: { + tooltip: "Fella blokk saman", + secondary_tooltip: "Tab", + }, + unnest: { + tooltip: "Afþýða blokk", + secondary_tooltip: "Shift+Tab", + }, + align_left: { + tooltip: "Vinstrijafna texta", + }, + align_center: { + tooltip: "Miðjustilla texta", + }, + align_right: { + tooltip: "Hægrijafna texta", + }, + align_justify: { + tooltip: "Jafna texta", + }, + }, + image_panel: { + upload: { + title: "Hlaða upp", + file_placeholder: "Hlaða upp mynd", + upload_error: "Villa: Upphleðsla mistókst", + }, + embed: { + title: "Innsetja", + embed_button: "Innsetja mynd", + url_placeholder: "Sláðu inn URL", + }, + }, + link_toolbar: { + delete: { + tooltip: "Fjarlægja tengil", + }, + edit: { + text: "Breyta tengli", + tooltip: "Breyta", + }, + open: { + tooltip: "Opna í nýjum flipa", + }, + form: { + title_placeholder: "Breyta titli", + url_placeholder: "Breyta URL", + }, + }, + generic: { + ctrl_shortcut: "Ctrl", + }, +}; diff --git a/packages/core/src/i18n/locales/pl.ts b/packages/core/src/i18n/locales/pl.ts new file mode 100644 index 0000000000..b8586ae1c4 --- /dev/null +++ b/packages/core/src/i18n/locales/pl.ts @@ -0,0 +1,195 @@ +export const pl = { + slash_menu: { + heading: { + title: "Nagłówek 1", + subtext: "Używany dla nagłówka najwyższego poziomu", + aliases: ["h", "naglowek1", "h1"], + group: "Nagłówki", + }, + heading_2: { + title: "Nagłówek 2", + subtext: "Używany dla kluczowych sekcji", + aliases: ["h2", "naglowek2", "podnaglowek"], + group: "Nagłówki", + }, + heading_3: { + title: "Nagłówek 3", + subtext: "Używany dla podsekcji i grup nagłówków", + aliases: ["h3", "naglowek3", "podnaglowek"], + group: "Nagłówki", + }, + numbered_list: { + title: "Lista numerowana", + subtext: "Używana do wyświetlania listy numerowanej", + aliases: ["ol", "li", "lista", "numerowana lista"], + group: "Podstawowe bloki", + }, + bullet_list: { + title: "Lista punktowana", + subtext: "Używana do wyświetlania listy bez numeracji", + aliases: ["ul", "li", "lista", "punktowana lista"], + group: "Podstawowe bloki", + }, + paragraph: { + title: "Akapit", + subtext: "Używany dla treści dokumentu", + aliases: ["p", "akapit"], + group: "Podstawowe bloki", + }, + table: { + title: "Tabela", + subtext: "Używana do tworzenia tabel", + aliases: ["tabela"], + group: "Zaawansowane", + }, + image: { + title: "Obraz", + subtext: "Wstaw obraz", + aliases: [ + "obraz", + "przeslijObraz", + "przeslij", + "img", + "zdjecie", + "media", + "url", + "dysk", + "dropbox", + ], + group: "Media", + }, + }, + placeholders: { + default: "Wprowadź tekst lub wpisz '/' aby użyć poleceń", + heading: "Nagłówek", + bulletListItem: "Lista", + numberedListItem: "Lista", + }, + image: { + add_button: "Dodaj obraz", + }, + side_menu: { + add_block_label: "Dodaj blok", + drag_handle_label: "Otwórz menu bloków", + }, + drag_handle: { + delete_menuitem: "Usuń", + colors_menuitem: "Kolory", + }, + table_handle: { + delete_column_menuitem: "Usuń kolumnę", + delete_row_menuitem: "Usuń wiersz", + add_left_menuitem: "Dodaj kolumnę po lewej", + add_right_menuitem: "Dodaj kolumnę po prawej", + add_above_menuitem: "Dodaj wiersz powyżej", + add_below_menuitem: "Dodaj wiersz poniżej", + }, + suggestion_menu: { + no_items_title: "Nie znaleziono elementów", + loading: "Ładowanie…", + }, + color_picker: { + text_title: "Tekst", + background_title: "Tło", + colors: { + default: "Domyślny", + gray: "Szary", + brown: "Brązowy", + red: "Czerwony", + orange: "Pomarańczowy", + yellow: "Żółty", + green: "Zielony", + blue: "Niebieski", + purple: "Fioletowy", + pink: "Różowy", + }, + }, + + formatting_toolbar: { + bold: { + tooltip: "Pogrubienie", + secondary_tooltip: "Mod+B", + }, + italic: { + tooltip: "Kursywa", + secondary_tooltip: "Mod+I", + }, + underline: { + tooltip: "Podkreślenie", + secondary_tooltip: "Mod+U", + }, + strike: { + tooltip: "Przekreślenie", + secondary_tooltip: "Mod+Shift+X", + }, + code: { + tooltip: "Kod", + secondary_tooltip: "", + }, + colors: { + tooltip: "Kolory", + }, + link: { + tooltip: "Utwórz link", + secondary_tooltip: "Mod+K", + }, + image_caption: { + tooltip: "Edytuj podpis", + input_placeholder: "Edytuj podpis", + }, + image_replace: { + tooltip: "Zamień obraz", + }, + nest: { + tooltip: "Zagnieźdź blok", + secondary_tooltip: "Tab", + }, + unnest: { + tooltip: "Odgagnieźdź blok", + secondary_tooltip: "Shift+Tab", + }, + align_left: { + tooltip: "Wyrównaj tekst do lewej", + }, + align_center: { + tooltip: "Wyśrodkuj tekst", + }, + align_right: { + tooltip: "Wyrównaj tekst do prawej", + }, + align_justify: { + tooltip: "Wyjustuj tekst", + }, + }, + image_panel: { + upload: { + title: "Przesyłanie", + file_placeholder: "Prześlij obraz", + upload_error: "Błąd: Przesyłanie nie powiodło się", + }, + embed: { + title: "Osadź", + embed_button: "Osadź obraz", + url_placeholder: "Wprowadź URL", + }, + }, + link_toolbar: { + delete: { + tooltip: "Usuń link", + }, + edit: { + text: "Edytuj link", + tooltip: "Edytuj", + }, + open: { + tooltip: "Otwórz w nowej karcie", + }, + form: { + title_placeholder: "Edytuj tytuł", + url_placeholder: "Edytuj URL", + }, + }, + generic: { + ctrl_shortcut: "Ctrl", + }, +}; From 7ee48c82af1e642fc0dcef5b527a3124cca83ab2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20=C5=81asi=C5=84ski?= Date: Sun, 19 May 2024 00:02:09 +0200 Subject: [PATCH 2/2] chore: use dictionary type --- packages/core/src/i18n/locales/is.ts | 4 +++- packages/core/src/i18n/locales/pl.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/core/src/i18n/locales/is.ts b/packages/core/src/i18n/locales/is.ts index 9d3e8ab6bd..ea33cad57e 100644 --- a/packages/core/src/i18n/locales/is.ts +++ b/packages/core/src/i18n/locales/is.ts @@ -1,4 +1,6 @@ -export const is = { +import type { Dictionary } from "../dictionary"; + +export const is: Dictionary = { slash_menu: { heading: { title: "Fyrirsögn 1", diff --git a/packages/core/src/i18n/locales/pl.ts b/packages/core/src/i18n/locales/pl.ts index b8586ae1c4..54b1585c33 100644 --- a/packages/core/src/i18n/locales/pl.ts +++ b/packages/core/src/i18n/locales/pl.ts @@ -1,4 +1,6 @@ -export const pl = { +import type { Dictionary } from "../dictionary"; + +export const pl: Dictionary = { slash_menu: { heading: { title: "Nagłówek 1",