Skip to content

Commit 55590e0

Browse files
authored
history: translations (#1527)
* initial locales * more * final translations * style fixes for days
1 parent e9635eb commit 55590e0

File tree

12 files changed

+893
-3
lines changed

12 files changed

+893
-3
lines changed

special-pages/pages/history/app/components/Sidebar.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ export function Sidebar({ ranges }) {
7979
<h1 class={styles.pageTitle}>{t('page_title')}</h1>
8080
<nav class={styles.nav}>
8181
{ranges.value.map((range) => {
82-
console.log(range.id, range.count);
8382
return (
8483
<Item
8584
key={range.id}
@@ -122,7 +121,7 @@ function Item({ current, range, onClick, onDelete, ranges, count }) {
122121
<div class={classNames} key={range}>
123122
<button
124123
aria-label={linkLabel}
125-
className={styles.link}
124+
class={styles.link}
126125
tabIndex={0}
127126
onClick={(e) => {
128127
e.preventDefault();

special-pages/pages/history/app/components/Sidebar.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
flex: 1;
6767
white-space: normal;
6868
text-align: left;
69+
text-transform: capitalize;
6970
}
7071

7172
.delete {

special-pages/pages/history/app/history.service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class HistoryService {
6363
const { detail } = evt;
6464

6565
// reject duplicates (eg: already fetching the same query)
66-
if (eq(detail, this.ongoing)) return console.log('ignoring duplicate query');
66+
if (eq(detail, this.ongoing)) return;
6767

6868
// increment the counter
6969
this.index++;

special-pages/pages/history/app/mocks/mock-transport.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export function mockTransport() {
3636
{ id: 'yesterday', count: 1 },
3737
{ id: 'tuesday', count: 1 },
3838
{ id: 'monday', count: 1 },
39+
{ id: 'sunday', count: 1 },
40+
{ id: 'saturday', count: 1 },
3941
{ id: 'friday', count: 1 },
4042
{ id: 'older', count: 1 },
4143
],
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
{
2+
"smartling" : {
3+
"string_format" : "icu",
4+
"translate_paths" : [
5+
{
6+
"path" : "*/title",
7+
"key" : "{*}/title",
8+
"instruction" : "*/note"
9+
}]
10+
},
11+
"empty_title" : {
12+
"title" : "Hier gibt's nichts zu sehen!",
13+
"note" : "Text shown where there are no remaining history entries"
14+
},
15+
"empty_text" : {
16+
"title" : "Seitenbesuche werden angezeigt, sobald du mit dem Browsen beginnst.",
17+
"note" : "Placeholder text when there's no results to show"
18+
},
19+
"delete_all" : {
20+
"title" : "Alle löschen",
21+
"note" : "Text for a button that deletes all items or entries. An additional confirmation dialog will be presented."
22+
},
23+
"delete_some" : {
24+
"title" : "Löschen",
25+
"note" : "Text for a button that deletes currently selected items"
26+
},
27+
"delete_none" : {
28+
"title" : "Nichts zu löschen",
29+
"note" : "Title/tooltip text on a button that does nothing when there is no browsing history to delete. It's additional information shown on hover."
30+
},
31+
"page_title" : {
32+
"title" : "Verlauf",
33+
"note" : "The main page title"
34+
},
35+
"search" : {
36+
"title" : "Suche",
37+
"note" : "The placeholder text in a search input field."
38+
},
39+
"show_history_all" : {
40+
"title" : "Gesamten Verlauf anzeigen",
41+
"note" : "Button text for an action that removes all filters and searches, and replaces the list with all history."
42+
},
43+
"show_history_older" : {
44+
"title" : "Älteren Verlauf anzeigen",
45+
"note" : "Button that shows older history entries"
46+
},
47+
"show_history_for" : {
48+
"title" : "Verlauf von {range} anzeigen",
49+
"note" : "The placeholder {range} in the title will be dynamically replaced with specific date ranges such as 'Today', 'Yesterday', or days of the week like 'Monday'. For example, if the range is set to 'Today', the title will become 'Show history for Today'."
50+
},
51+
"delete_history_all" : {
52+
"title" : "Gesamten Verlauf löschen",
53+
"note" : "Button text for an action that removes all history entries."
54+
},
55+
"delete_history_older" : {
56+
"title" : "Älteren Verlauf löschen",
57+
"note" : "Button that deletes older history entries."
58+
},
59+
"delete_history_for" : {
60+
"title" : "Verlauf von {range} löschen",
61+
"note" : "The placeholder {range} in the title will be dynamically replaced with specific date ranges such as 'Today', 'Yesterday', or days of the week like 'Monday'. For example, if the range is set to 'Today', the title will become 'Delete history for Today'."
62+
},
63+
"search_your_history" : {
64+
"title" : "Durchsuche deinen Verlauf",
65+
"note" : "Label text for screen readers. It's shown next to the search input field"
66+
},
67+
"range_all" : {
68+
"title" : "Alle",
69+
"note" : "Label on a button that shows all history entries"
70+
},
71+
"range_today" : {
72+
"title" : "Heute",
73+
"note" : "Label on a button that shows history entries for today only"
74+
},
75+
"range_yesterday" : {
76+
"title" : "Gestern",
77+
"note" : "Label on a button that shows history entries for yesterday only"
78+
},
79+
"range_monday" : {
80+
"title" : "Montag",
81+
"note" : "Label on a button that shows history entries for monday only"
82+
},
83+
"range_tuesday" : {
84+
"title" : "Dienstag",
85+
"note" : "Label on a button that shows history entries for tuesday only"
86+
},
87+
"range_wednesday" : {
88+
"title" : "Mittwoch",
89+
"note" : "Label on a button that shows history entries for wednesday only"
90+
},
91+
"range_thursday" : {
92+
"title" : "Donnerstag",
93+
"note" : "Label on a button that shows history entries for thursday only"
94+
},
95+
"range_friday" : {
96+
"title" : "Freitag",
97+
"note" : "Label on a button that shows history entries for friday only"
98+
},
99+
"range_saturday" : {
100+
"title" : "Samstag",
101+
"note" : "Label on a button that shows history entries for saturday only"
102+
},
103+
"range_sunday" : {
104+
"title" : "Sonntag",
105+
"note" : "Label on a button that shows history entries for sunday only"
106+
},
107+
"range_older" : {
108+
"title" : "Älter",
109+
"note" : "Label on a button that shows older history entries."
110+
}
111+
}
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
{
2+
"smartling" : {
3+
"string_format" : "icu",
4+
"translate_paths" : [
5+
{
6+
"path" : "*/title",
7+
"key" : "{*}/title",
8+
"instruction" : "*/note"
9+
}]
10+
},
11+
"empty_title" : {
12+
"title" : "¡No hay nada que ver aquí!",
13+
"note" : "Text shown where there are no remaining history entries"
14+
},
15+
"empty_text" : {
16+
"title" : "Las visitas a la página se mostrarán cuando empieces a navegar.",
17+
"note" : "Placeholder text when there's no results to show"
18+
},
19+
"delete_all" : {
20+
"title" : "Eliminar todo",
21+
"note" : "Text for a button that deletes all items or entries. An additional confirmation dialog will be presented."
22+
},
23+
"delete_some" : {
24+
"title" : "Eliminar",
25+
"note" : "Text for a button that deletes currently selected items"
26+
},
27+
"delete_none" : {
28+
"title" : "Nada que eliminar",
29+
"note" : "Title/tooltip text on a button that does nothing when there is no browsing history to delete. It's additional information shown on hover."
30+
},
31+
"page_title" : {
32+
"title" : "Historial",
33+
"note" : "The main page title"
34+
},
35+
"search" : {
36+
"title" : "Buscar",
37+
"note" : "The placeholder text in a search input field."
38+
},
39+
"show_history_all" : {
40+
"title" : "Mostrar todo el historial",
41+
"note" : "Button text for an action that removes all filters and searches, and replaces the list with all history."
42+
},
43+
"show_history_older" : {
44+
"title" : "Mostrar el historial más antiguo",
45+
"note" : "Button that shows older history entries"
46+
},
47+
"show_history_for" : {
48+
"title" : "Mostrar historial para {range}",
49+
"note" : "The placeholder {range} in the title will be dynamically replaced with specific date ranges such as 'Today', 'Yesterday', or days of the week like 'Monday'. For example, if the range is set to 'Today', the title will become 'Show history for Today'."
50+
},
51+
"delete_history_all" : {
52+
"title" : "Borrar todo el historial",
53+
"note" : "Button text for an action that removes all history entries."
54+
},
55+
"delete_history_older" : {
56+
"title" : "Borrar historial más antiguo",
57+
"note" : "Button that deletes older history entries."
58+
},
59+
"delete_history_for" : {
60+
"title" : "Borrar historial para {range}",
61+
"note" : "The placeholder {range} in the title will be dynamically replaced with specific date ranges such as 'Today', 'Yesterday', or days of the week like 'Monday'. For example, if the range is set to 'Today', the title will become 'Delete history for Today'."
62+
},
63+
"search_your_history" : {
64+
"title" : "Buscar en tu historial",
65+
"note" : "Label text for screen readers. It's shown next to the search input field"
66+
},
67+
"range_all" : {
68+
"title" : "Todo",
69+
"note" : "Label on a button that shows all history entries"
70+
},
71+
"range_today" : {
72+
"title" : "Hoy",
73+
"note" : "Label on a button that shows history entries for today only"
74+
},
75+
"range_yesterday" : {
76+
"title" : "Ayer",
77+
"note" : "Label on a button that shows history entries for yesterday only"
78+
},
79+
"range_monday" : {
80+
"title" : "Lunes",
81+
"note" : "Label on a button that shows history entries for monday only"
82+
},
83+
"range_tuesday" : {
84+
"title" : "Martes",
85+
"note" : "Label on a button that shows history entries for tuesday only"
86+
},
87+
"range_wednesday" : {
88+
"title" : "Miércoles",
89+
"note" : "Label on a button that shows history entries for wednesday only"
90+
},
91+
"range_thursday" : {
92+
"title" : "Jueves",
93+
"note" : "Label on a button that shows history entries for thursday only"
94+
},
95+
"range_friday" : {
96+
"title" : "Viernes",
97+
"note" : "Label on a button that shows history entries for friday only"
98+
},
99+
"range_saturday" : {
100+
"title" : "Sábado",
101+
"note" : "Label on a button that shows history entries for saturday only"
102+
},
103+
"range_sunday" : {
104+
"title" : "Domingo",
105+
"note" : "Label on a button that shows history entries for sunday only"
106+
},
107+
"range_older" : {
108+
"title" : "Más antiguo",
109+
"note" : "Label on a button that shows older history entries."
110+
}
111+
}
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
{
2+
"smartling" : {
3+
"string_format" : "icu",
4+
"translate_paths" : [
5+
{
6+
"path" : "*/title",
7+
"key" : "{*}/title",
8+
"instruction" : "*/note"
9+
}]
10+
},
11+
"empty_title" : {
12+
"title" : "Il n'y a rien à voir ici !",
13+
"note" : "Text shown where there are no remaining history entries"
14+
},
15+
"empty_text" : {
16+
"title" : "Les visites de page apparaîtront une fois que vous commencerez à naviguer.",
17+
"note" : "Placeholder text when there's no results to show"
18+
},
19+
"delete_all" : {
20+
"title" : "Tout supprimer",
21+
"note" : "Text for a button that deletes all items or entries. An additional confirmation dialog will be presented."
22+
},
23+
"delete_some" : {
24+
"title" : "Supprimer",
25+
"note" : "Text for a button that deletes currently selected items"
26+
},
27+
"delete_none" : {
28+
"title" : "Rien à supprimer",
29+
"note" : "Title/tooltip text on a button that does nothing when there is no browsing history to delete. It's additional information shown on hover."
30+
},
31+
"page_title" : {
32+
"title" : "Historique",
33+
"note" : "The main page title"
34+
},
35+
"search" : {
36+
"title" : "Rechercher",
37+
"note" : "The placeholder text in a search input field."
38+
},
39+
"show_history_all" : {
40+
"title" : "Afficher tout l'historique",
41+
"note" : "Button text for an action that removes all filters and searches, and replaces the list with all history."
42+
},
43+
"show_history_older" : {
44+
"title" : "Afficher l'historique plus ancien",
45+
"note" : "Button that shows older history entries"
46+
},
47+
"show_history_for" : {
48+
"title" : "Afficher l'historique d'/de {range}",
49+
"note" : "The placeholder {range} in the title will be dynamically replaced with specific date ranges such as 'Today', 'Yesterday', or days of the week like 'Monday'. For example, if the range is set to 'Today', the title will become 'Show history for Today'."
50+
},
51+
"delete_history_all" : {
52+
"title" : "Supprimer tout l'historique",
53+
"note" : "Button text for an action that removes all history entries."
54+
},
55+
"delete_history_older" : {
56+
"title" : "Supprimer l'historique plus ancien",
57+
"note" : "Button that deletes older history entries."
58+
},
59+
"delete_history_for" : {
60+
"title" : "Supprimer l'historique d'/de {range}",
61+
"note" : "The placeholder {range} in the title will be dynamically replaced with specific date ranges such as 'Today', 'Yesterday', or days of the week like 'Monday'. For example, if the range is set to 'Today', the title will become 'Delete history for Today'."
62+
},
63+
"search_your_history" : {
64+
"title" : "Rechercher dans votre historique",
65+
"note" : "Label text for screen readers. It's shown next to the search input field"
66+
},
67+
"range_all" : {
68+
"title" : "Tous",
69+
"note" : "Label on a button that shows all history entries"
70+
},
71+
"range_today" : {
72+
"title" : "Auj.",
73+
"note" : "Label on a button that shows history entries for today only"
74+
},
75+
"range_yesterday" : {
76+
"title" : "Hier",
77+
"note" : "Label on a button that shows history entries for yesterday only"
78+
},
79+
"range_monday" : {
80+
"title" : "Lundi",
81+
"note" : "Label on a button that shows history entries for monday only"
82+
},
83+
"range_tuesday" : {
84+
"title" : "Mardi",
85+
"note" : "Label on a button that shows history entries for tuesday only"
86+
},
87+
"range_wednesday" : {
88+
"title" : "Mercredi",
89+
"note" : "Label on a button that shows history entries for wednesday only"
90+
},
91+
"range_thursday" : {
92+
"title" : "Jeudi",
93+
"note" : "Label on a button that shows history entries for thursday only"
94+
},
95+
"range_friday" : {
96+
"title" : "Vendredi",
97+
"note" : "Label on a button that shows history entries for friday only"
98+
},
99+
"range_saturday" : {
100+
"title" : "Samedi",
101+
"note" : "Label on a button that shows history entries for saturday only"
102+
},
103+
"range_sunday" : {
104+
"title" : "Dimanche",
105+
"note" : "Label on a button that shows history entries for sunday only"
106+
},
107+
"range_older" : {
108+
"title" : "Anciennes",
109+
"note" : "Label on a button that shows older history entries."
110+
}
111+
}

0 commit comments

Comments
 (0)