Skip to content

Commit 1e2c38f

Browse files
ynotdrawclintcs
andauthored
Add French and Japanese translations (#725)
* Add French and Japanese translations * Update .changeset/curvy-walls-attack.md Co-authored-by: clintcs <114178960+clintcs@users.noreply.github.com> --------- Co-authored-by: clintcs <114178960+clintcs@users.noreply.github.com>
1 parent 94a66f0 commit 1e2c38f

File tree

5 files changed

+50
-35
lines changed

5 files changed

+50
-35
lines changed

.changeset/curvy-walls-attack.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@crowdstrike/glide-core': patch
3+
---
4+
5+
Most text is provided by consumers via attributes. But many components have built-in text to help screenreaders. That text has been fully localized for French and Japanese.

src/translations/fr.json

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
{
2-
"close": "Fermer",
3-
"dismiss": "Congédier",
2+
"close": "FERMER",
3+
"dismiss": "Ignorer",
44
"selectAll": "Tout sélectionner",
55
"notifications": "Notifications",
66
"nextTab": "Onglet suivant",
77
"previousTab": "Onglet précédent",
8-
"announcedCharacterCount": "Nombre de caractères {current} de {maximum}",
8+
"noResults": "Aucun résultat trouvé",
9+
"tooltip": "Info-bulle :",
10+
"announcedCharacterCount": "Nombre de caractères {current} sur {maximum}",
911
"displayedCharacterCount": "{current}/{maximum}",
1012
"clearEntry": "Effacer l'entrée {label}",
11-
"removeTag": "Supprimer la balise : {label}",
12-
"actionsFor": "Actions pour {label}"
13+
"editOption": "Modifier l'option : {label}",
14+
"editTag": "Modifier la balise : {label}",
15+
"removeTag": "Enlever la balise : {label}",
16+
"actionsFor": "Action pour {label}",
17+
"itemCount": "{count} éléments",
18+
"closeInlineAlert": "Fermer l'alerte {variant}"
1319
}

src/translations/fr.ts

+12-13
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
import type { Translation } from '../library/localize.js';
22

3-
export const PENDING_STRINGS = [
4-
'editOption',
5-
'editTag',
6-
'itemCount',
7-
'noResults',
8-
'closeInlineAlert',
9-
'tooltip',
10-
] as const;
3+
export const PENDING_STRINGS = [] as const;
114

125
type PendingTranslation = (typeof PENDING_STRINGS)[number];
136

@@ -17,20 +10,26 @@ const translation: Omit<Translation, PendingTranslation> = {
1710
$dir: 'ltr',
1811

1912
// These come from ./fr.json
20-
close: 'Fermer',
21-
dismiss: 'Congédier',
13+
close: 'FERMER',
14+
dismiss: 'Ignorer',
2215
selectAll: 'Tout sélectionner',
2316
notifications: 'Notifications',
2417
nextTab: 'Onglet suivant',
2518
previousTab: 'Onglet précédent',
19+
noResults: 'Aucun résultat trouvé',
20+
tooltip: 'Info-bulle :',
2621

2722
announcedCharacterCount: (current: number, maximum: number) =>
28-
`Nombre de caractères ${current} de ${maximum}`,
23+
`Nombre de caractères ${current} sur ${maximum}`,
2924
displayedCharacterCount: (current: number, maximum: number) =>
3025
`${current}/${maximum}`,
3126
clearEntry: (label: string) => `Effacer l'entrée ${label}`,
32-
removeTag: (label: string) => `Supprimer la balise : ${label}`,
33-
actionsFor: (label: string) => `Actions pour ${label}`,
27+
editOption: (label: string) => `Modifier l'option : ${label}`,
28+
editTag: (label: string) => `Modifier la balise : ${label}`,
29+
removeTag: (label: string) => `Enlever la balise : ${label}`,
30+
actionsFor: (label: string) => `Action pour ${label}`,
31+
itemCount: (count: string) => `${count} éléments`,
32+
closeInlineAlert: (variant: string) => `Fermer l'alerte ${variant}`,
3433
};
3534

3635
export default translation;

src/translations/ja.json

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
{
22
"close": "閉じる",
3-
"dismiss": "無視",
3+
"dismiss": "閉じる",
44
"selectAll": "すべて選択",
55
"notifications": "通知",
66
"nextTab": "次のタブ",
77
"previousTab": "前のタブ",
8-
"announcedCharacterCount": "{maximum} 文字数の{current}",
8+
"noResults": "結果が見つかりません",
9+
"tooltip": "ツールチップ:",
10+
"announcedCharacterCount": "文字数 {current}/{maximum}",
911
"displayedCharacterCount": "{current}/{maximum}",
10-
"clearEntry": "{label}エントリのクリア",
11-
"removeTag": "タグを削除: {label}",
12-
"actionsFor": "{label}のアクション"
12+
"clearEntry": "{label}入力をクリア",
13+
"editOption": "編集オプション:{label}",
14+
"editTag": "タグの編集:{label}",
15+
"removeTag": "タグの削除:{label}",
16+
"actionsFor": "{label}のアクション",
17+
"itemCount": "{count}件",
18+
"closeInlineAlert": "{variant}アラートを閉じる"
1319
}

src/translations/ja.ts

+11-12
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
import type { Translation } from '../library/localize.js';
22

3-
export const PENDING_STRINGS = [
4-
'editOption',
5-
'editTag',
6-
'itemCount',
7-
'noResults',
8-
'closeInlineAlert',
9-
'tooltip',
10-
] as const;
3+
export const PENDING_STRINGS = [] as const;
114

125
type PendingTranslation = (typeof PENDING_STRINGS)[number];
136

@@ -18,19 +11,25 @@ const translation: Omit<Translation, PendingTranslation> = {
1811

1912
// These come from ./ja.json
2013
close: '閉じる',
21-
dismiss: '無視',
14+
dismiss: '閉じる',
2215
selectAll: 'すべて選択',
2316
notifications: '通知',
2417
nextTab: 'Onglet suivant',
2518
previousTab: 'Onglet précédent',
19+
noResults: '結果が見つかりません',
20+
tooltip: 'ツールチップ:',
2621

2722
announcedCharacterCount: (current: number, maximum: number) =>
28-
`${maximum} 文字数の${current}`,
23+
`文字数 ${current}/${maximum}`,
2924
displayedCharacterCount: (current: number, maximum: number) =>
3025
`${current}/${maximum}`,
31-
clearEntry: (label: string) => `${label}エントリのクリア`,
32-
removeTag: (label: string) => `タグを削除: ${label}`,
26+
clearEntry: (label: string) => `${label}入力をクリア`,
27+
editOption: (label: string) => `編集オプション:${label}`,
28+
editTag: (label: string) => `タグの編集:${label}`,
29+
removeTag: (label: string) => `タグの削除:${label}`,
3330
actionsFor: (label: string) => `${label}のアクション`,
31+
itemCount: (count: string) => `${count}件`,
32+
closeInlineAlert: (variant: string) => `${variant}アラートを閉じる`,
3433
};
3534

3635
export default translation;

0 commit comments

Comments
 (0)