Skip to content

Commit

Permalink
Clean up language files
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmeyers committed Apr 26, 2024
1 parent 6acbb95 commit b2895dd
Show file tree
Hide file tree
Showing 25 changed files with 98 additions and 135 deletions.
4 changes: 2 additions & 2 deletions src/lang/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import ar from './locale/ar';
import cz from './locale/cz';
import da from './locale/da';
import de from './locale/de';
import en from './locale/en';
import en, { Lang } from './locale/en';
import es from './locale/es';
import fr from './locale/fr';
import hi from './locale/hi';
Expand All @@ -23,7 +23,7 @@ import uk from './locale/tr';
import zhCN from './locale/zh-cn';
import zhTW from './locale/zh-tw';

const localeMap: { [k: string]: Partial<typeof en> } = {
const localeMap: { [k: string]: Partial<Lang> } = {
ar,
cz,
da,
Expand Down
5 changes: 4 additions & 1 deletion src/lang/locale/ar.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// العربية
import { Lang } from './en';

export default {};
const lang: Partial<Lang> = {};

export default lang;
5 changes: 4 additions & 1 deletion src/lang/locale/cz.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// čeština
import { Lang } from './en';

export default {};
const lang: Partial<Lang> = {};

export default lang;
5 changes: 4 additions & 1 deletion src/lang/locale/da.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Dansk
import { Lang } from './en';

export default {};
const lang: Partial<Lang> = {};

export default lang;
24 changes: 4 additions & 20 deletions src/lang/locale/de.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Deutsch
import { Lang } from './en';

export default {
const lang: Partial<Lang> = {
// main.ts
'Open as kanban board': 'Öffne als Kanban-Board',
'Create new board': 'Erstelle ein neues Board',
Expand Down Expand Up @@ -52,9 +53,6 @@ export default {
'Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.':
'Notizen, welche aus einer Kanban-Karte erstellt wurden, werden in diesem Ordner platziert. Falls leer, werden die Einstellungen des Vaults verwendet.',
'Default folder': 'Standard Ordner',
'Lane width': 'Schienen Breite',
'Enter a number to set the lane width in pixels.':
'Gebe ein Zahl ein, um die Schienen Breite in Pixeln einzustellen.',
'Maximum number of archived cards': 'Maximale Anzahl archivierter Karten.',
"Archived cards can be viewed in markdown mode. This setting will begin removing old cards once the limit is reached. Setting this value to -1 will allow a board's archive to grow infinitely.":
'Archivierte Karten können im Markdown-Modus betrachtet werden. Diese Einstellung wird alte Karten löschen, sobald das Limit erreicht wird. Eine Einstellung von -1 setzt das Archiv auf eine unendliche Größe.',
Expand All @@ -80,14 +78,6 @@ export default {
'This format will be used when displaying dates in Kanban cards.':
'Dieses Format wird verwendet, wenn ein Datum in einer Kanban-Karte angezeigt wird.',
'Show relative date': 'Zeige relatives Datum',
"When toggled, cards will display the distance between today and the card's date. eg. 'In 3 days', 'A month ago'":
"Wenn aktiviert, wird die Zeitspanne zwischen Heute und dem Datum angezeigt. Zum Beispiel: 'In 3 Tagen', 'Vor einem Monat'",
'Hide card display dates': 'Verstecke Karten Datum',
'When toggled, formatted dates will not be displayed on the card. Relative dates will still be displayed if they are enabled.':
'Wenn aktiviert, werden formatierte Daten nicht auf der Karte angezeigt. Relative Daten werden dennoch angezeigt, solange sie aktiviert sind.',
'Hide dates in card titles': 'Verstecke Daten im Titel der Karte',
'When toggled, dates will be hidden card titles. This will prevent dates from being included in the title when creating new notes.':
'Wenn aktiviert, werden Daten nicht im Titel der Karte angezeigt. Dies verhindert, dass Daten im Titel neu erstellter Notizen vorhanden sind.',
'Link dates to daily notes': 'Verbinde Daten zu Daily Notes',
'When toggled, dates will link to daily notes. Eg. [[2021-04-26]]':
'Wenn aktiviert, werden Daten mit Daily Notes verbunden. Zum Beispiel [[26.4.2021]]',
Expand All @@ -100,21 +90,13 @@ export default {
'Archive date/time format': 'Format des Datums und der Uhrzeit für das Archiv',
'Kanban Plugin': 'Kanban Erweiterung',
'New line trigger': 'Taste für neue Zeile', //No exact translation, but makes sense in App
'Select whether Enter or Shift+Enter creates a new line. The opposite of what you choose will create and complete editing of cards and lanes.':
'Wähle aus ob Enter oder Umschalttaste+Enter eine neue Zeile erstellen soll. Das Gegenteil kannst du verwenden um die Karte zu erstellen oder das bearbeiten der Karte oder Schiene zu beenden.',
'Shift + Enter': 'Umschalttaste + Enter',
Enter: 'Enter',
'Prepend / append new cards': 'Neue Karten voranfügen / anhängen',
'This setting controls whether new cards are added to the beginning or end of the list.':
'Diese Einstellung gibt an ob neue Karten am Anfang oder am Ende einer Liste hinzugefügt werden.',
Prepend: 'Voranfügen',
Append: 'Anhängen',
'Hide tags in card titles': 'Ausblenden von Tags in Kartentiteln',
'When toggled, tags will be hidden card titles. This will prevent tags from being included in the title when creating new notes.':
'Ist diese Einstellung an, so werden Tags im Kartentitel nicht angezeigt. Dadurch wird verhindert, dass Tags beim Erstellen neuer Notizen in den Titel aufgenommen werden.',
'Hide card display tags': 'Ausblenden von Kartenanzeige-Tags',
'When toggled, tags will not be displayed below the card title.':
'Ist diese Einstellung an, werden Tags nicht unter dem Kartentitel angezeigt.',
'Linked Page Metadata': 'Metadaten für verknüpfte (verlinkte) Notizen',
'Display metadata for the first note linked within a card. Specify which metadata keys to display below. An optional label can be provided, and labels can be hidden altogether.':
'Zeigen Sie Metadaten für die erste Notiz an, die innerhalb einer Karte verknüpft ist. Geben Sie an, welche Metadatenschlüssel unten angezeigt werden sollen. Ein optionales Label kann hinzugefügt werden, es kann aber auch vollständig ausgeblendet werden.',
Expand Down Expand Up @@ -182,3 +164,5 @@ export default {
'Archive list': 'Archiviere List',
'Delete list': 'Lösche Liste',
};

export default lang;
5 changes: 4 additions & 1 deletion src/lang/locale/en.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// English

export default {
const en = {
// main.ts
'Open as kanban board': 'Open as kanban board',
'Create new board': 'Create new board',
Expand Down Expand Up @@ -271,3 +271,6 @@ export default {
// components/Editor/MarkdownEditor.tsx
Submit: 'Submit',
};

export type Lang = typeof en;
export default en;
5 changes: 4 additions & 1 deletion src/lang/locale/es.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Español
import { Lang } from './en';

export default {};
const lang: Partial<Lang> = {};

export default lang;
5 changes: 4 additions & 1 deletion src/lang/locale/fr.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// français
import { Lang } from './en';

export default {};
const lang: Partial<Lang> = {};

export default lang;
5 changes: 4 additions & 1 deletion src/lang/locale/hi.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// हिन्दी
import { Lang } from './en';

export default {};
const lang: Partial<Lang> = {};

export default lang;
5 changes: 4 additions & 1 deletion src/lang/locale/id.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Bahasa Indonesia
import { Lang } from './en';

export default {};
const lang: Partial<Lang> = {};

export default lang;
16 changes: 4 additions & 12 deletions src/lang/locale/it.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Italiano
import { Lang } from './en';

export default {
const lang: Partial<Lang> = {
// main.ts
'Open as kanban board': 'Apri come bacheca Kanban',
'Create new board': 'Crea nuova bacheca',
Expand Down Expand Up @@ -40,9 +41,6 @@ export default {
'Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.':
'Le note create dalle schede Kanban verranno inserite in questa cartella. Se vuota, verranno inserite nella posizione predefinita del vault.',
'Default folder': 'Cartella predefinita',
'Lane width': 'Larghezza colonna',
'Enter a number to set the lane width in pixels.':
'Inserire un numero per impostare la larghezza della colonna in pixel.',
'Maximum number of archived cards': 'Numero massimo di schede archiviate',
"Archived cards can be viewed in markdown mode. This setting will begin removing old cards once the limit is reached. Setting this value to -1 will allow a board's archive to grow infinitely.":
'Le schede archiviate possono essere visualizzate in modalità Markdown. Le vecchie schede verranno rimosse una volta raggiunto il limite. Impostando il valore -1 il numero di schede archiviate sarà illimitato.',
Expand All @@ -68,14 +66,6 @@ export default {
'This format will be used when displaying dates in Kanban cards.':
'Formato utilizzato per visualizzare le date nelle schede Kanban.',
'Show relative date': 'Mostra data relativa',
"When toggled, cards will display the distance between today and the card's date. eg. 'In 3 days', 'A month ago'":
"Se attiva, le schede indicheranno la distanza tra la data odierna e la data della scheda. eg. 'Tra 3 giorni', 'Un mese fa'",
'Hide card display dates': 'Hide card display dates',
'When toggled, formatted dates will not be displayed on the card. Relative dates will still be displayed if they are enabled.':
'Se attiva, la data non verrà mostrata sulla scheda. Le date relative verranno comunque mostrate se sono state abilitate.',
'Hide dates in card titles': 'Nascondi date nei titoli delle schede',
'When toggled, dates will be hidden card titles. This will prevent dates from being included in the title when creating new notes.':
'Se attiva, la data non verrà mostrata nei titoli delle schede. Questo impedisce alle date di essere incluse quando vengono create nuove note.',
'Link dates to daily notes': 'Collega date alle Note del giorno',
'When toggled, dates will link to daily notes. Eg. [[2021-04-26]]':
'Se attiva, le date verranno collegate alle Note del giorno. Eg. [[2021-04-26]]',
Expand Down Expand Up @@ -141,3 +131,5 @@ export default {
'Archive list': 'Archivia lista',
'Delete list': 'Cancella lista',
};

export default lang;
23 changes: 4 additions & 19 deletions src/lang/locale/ja.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// 日本語
import { Lang } from './en';

export default {
const lang: Partial<Lang> = {
// main.ts
'Open as kanban board': 'カンバンボードとして開く',
'Create new board': 'カンバンボードを新規作成',
Expand Down Expand Up @@ -40,8 +41,6 @@ export default {

// Settings.ts
'New line trigger': '改行トリガー',
'Select whether Enter or Shift+Enter creates a new line. The opposite of what you choose will create and complete editing of cards and lanes.':
'改行に使うキーとしてEnterかShift+Enterのどちらを使うか選択してください。選択しなかった方のキーはカードとレーンの作成と編集完了のトリガーとなります。',
'Shift + Enter': 'Shift + Enter',
Enter: 'Enter',
'Prepend / append new cards': '先頭または末尾に新規カードを追加する',
Expand All @@ -62,8 +61,6 @@ export default {
'Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.':
'カンバンカードから作成されたノートはこのフォルダ内に置かれます。ブランクの場合には、この保管庫のデフォルトロケーションに置かれます。',
'Default folder': 'デフォルトフォルダ',
'Lane width': 'レーンの幅',
'Enter a number to set the lane width in pixels.': 'レーンの幅をピクセル単位を入力してください。',
'Maximum number of archived cards': 'アーカイブされたカードの最大数',
"Archived cards can be viewed in markdown mode. This setting will begin removing old cards once the limit is reached. Setting this value to -1 will allow a board's archive to grow infinitely.":
'アーカイブされたカードはマークダウンモードで閲覧できます。この設定により指定されたアーカイブの限界数まで達した際には古いカードを削除します。この値を-1に設定するとボードのアーカイブ限界を無限にします。',
Expand All @@ -89,14 +86,6 @@ export default {
'This format will be used when displaying dates in Kanban cards.':
'このフォーマットはカンバンカード内にて日付の表示に使用されます。',
'Show relative date': '相対日付を表示',
"When toggled, cards will display the distance between today and the card's date. eg. 'In 3 days', 'A month ago'":
"有効化するとカードの日付と今日の間の日数が表示されます。例: '3日後', '1ヶ月前'",
'Hide card display dates': 'カードに表示される日付を隠す',
'When toggled, formatted dates will not be displayed on the card. Relative dates will still be displayed if they are enabled.':
'有効化するとカード上のフォーマットされた日付が非表示になります。有効化された場合には相対日付は表示されままとなります。',
'Hide dates in card titles': 'カードタイトルの日付を隠す',
'When toggled, dates will be hidden card titles. This will prevent dates from being included in the title when creating new notes.':
'有効化するとカードタイトルの日付が非表示になります。これは新規ノートを作成した際にカードタイトルに日付が含まれるのを防ぎます。',
'Link dates to daily notes': 'デイリーノートに日付をリンク',
'When toggled, dates will link to daily notes. Eg. [[2021-04-26]]':
'有効化すると日付がデイリーノートにリンクされます。 例: [[2021-04-26]]',
Expand All @@ -108,12 +97,6 @@ export default {
'これはアーカイブされた日付・時間をタイトルから分離するのに使用されます。',
'Archive date/time format': '日付・時間フォーマットをアーカイブ',
'Kanban Plugin': 'カンバンプラグイン',
'Hide tags in card titles': 'カードタイトル内のタグを隠す',
'When toggled, tags will be hidden card titles. This will prevent tags from being included in the title when creating new notes.':
'有効化するとカードタイトル内のタグが非表示になります。これは新規ノートを作成した際にカードタイトルにタグが含まれるのを防ぎます。',
'Hide card display tags': 'カードに表示されるタグを隠す',
'When toggled, tags will not be displayed below the card title.':
'有効化するとカードタイトルの下のタグが非表示になります。',
'Linked Page Metadata': 'リンクされたページのメタデータ',
'Display metadata for the first note linked within a card. Specify which metadata keys to display below. An optional label can be provided, and labels can be hidden altogether.':
'カード内でリンクされている最初のノートのメタデータを表示します。下に表示するメタデータのキーを指定してください。オプションとしてラベルの付与が可能であり、ラベルは完全に非表示にすることができます。',
Expand Down Expand Up @@ -198,3 +181,5 @@ export default {
'Unable to find': '見つかりません',
'Open in default app': 'デフォルトアプリで開く',
};

export default lang;
19 changes: 4 additions & 15 deletions src/lang/locale/ko.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// 한국어
import { Lang } from './en';

export default {
const lang: Partial<Lang> = {
// main.ts
'Open as kanban board': '칸반 보드로 열기',
'Create new board': '새 보드 만들기',
Expand Down Expand Up @@ -88,17 +89,9 @@ export default {
'This format will be used when displaying dates in Kanban cards.':
'이 형식은 카반 보드에서 날짜를 표시할때 사용됩니다.',
'Show relative date': '날짜를 상대적으로 표시',
"When toggled, cards will display the distance between today and the card's date. eg. 'In 3 days', 'A month ago'":
"활성화하면 '3일 후', '한달 전' 처럼 오늘과 설정된 날짜 사이의 거리로 표기합니다.",
'Hide card display dates': '카드 날짜 표시 숨기기',
'Hide card counts in list titles': '목록 제목에 카드 수 표시 숨기기',
'When toggled, card counts are hidden from the list title':
'활성화하면 목록 제목에 총 카드 수가 표시되지 않습니다.',
'When toggled, formatted dates will not be displayed on the card. Relative dates will still be displayed if they are enabled.':
'활성화하면 카드에 날짜가 표시되지 않습니다. 상대적인 날짜는 활성화되어 있다면 표시됩니다.',
'Hide dates in card titles': '카드 제목에 날짜 숨기기',
'When toggled, dates will be hidden card titles. This will prevent dates from being included in the title when creating new notes.':
'활성화하면 카드 제목에 날짜가 표시되지 않습니다. 새 노트를 만들 때 제목에 날짜가 포함되는 것을 방지합니다.',
'Link dates to daily notes': '일일 노트에 날짜 연결',
'When toggled, dates will link to daily notes. Eg. [[2021-04-26]]':
'활성화하면 날짜가 일일 노트에 연결됩니다. 예: [[2021-04-26]]',
Expand All @@ -113,12 +106,6 @@ export default {
'이 구분자는 카드 제목과 보관된 날짜/시간을 구분하는데 사용됩니다.',
'Archive date/time format': '보관된 카드의 날짜/시간 형식',
'Kanban Plugin': '칸반 플러그인',
'Hide tags in card titles': '카드 제목에 태그 숨기기',
'When toggled, tags will be hidden card titles. This will prevent tags from being included in the title when creating new notes.':
'활성화하면 카드 제목에 태그가 표시되지 않습니다. 새 노트를 만들 때 제목에 태그가 포함되는 것을 방지합니다.',
'Hide card display tags': '카드 태그 숨기기',
'When toggled, tags will not be displayed below the card title.':
'활성화하면 카드 제목 아래에 태그가 표시되지 않습니다.',
'Tag colors': '태그 색상 표시',
'Set colors for tags displayed in cards.': '카드 제목 아래에 표시되는 태그의 색상을 설정합니다.',
'Linked Page Metadata': '링크된 페이지 메타데이터',
Expand Down Expand Up @@ -232,3 +219,5 @@ export default {
// components/Editor/MarkdownEditor.tsx
Submit: '확인',
};

export default lang;
5 changes: 4 additions & 1 deletion src/lang/locale/nl.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Nederlands
import { Lang } from './en';

export default {};
const lang: Partial<Lang> = {};

export default lang;
5 changes: 4 additions & 1 deletion src/lang/locale/no.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Norsk
import { Lang } from './en';

export default {};
const lang: Partial<Lang> = {};

export default lang;
5 changes: 4 additions & 1 deletion src/lang/locale/pl.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// język polski
import { Lang } from './en';

export default {};
const lang: Partial<Lang> = {};

export default lang;
Loading

0 comments on commit b2895dd

Please sign in to comment.