Skip to content

Commit

Permalink
feat: add max width translations (#236)
Browse files Browse the repository at this point in the history
* feat: add max width translations

Co-authored-by: Basile Spaenlehauer <[email protected]>

---------

Co-authored-by: Basile Spaenlehauer <[email protected]>
  • Loading branch information
pyphilia and spaenleh committed Aug 28, 2023
1 parent d6e070b commit 36c1bed
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/langs/ar/maxWidth.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/langs/de/maxWidth.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
6 changes: 6 additions & 0 deletions src/langs/en/maxWidth.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sm": "Small",
"md": "Medium",
"lg": "Large",
"xl": "Extra Large"
}
6 changes: 6 additions & 0 deletions src/langs/fr/maxWidth.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sm": "Petit",
"md": "Moyen",
"lg": "Grand",
"xl": "Extrêmement Grand"
}
10 changes: 10 additions & 0 deletions src/langs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ import flagFR from './fr/flag.json';
import flagDE from './de/flag.json';
import flagIT from './it/flag.json';
import flagAR from './ar/flag.json';
import maxWidthEN from './en/maxWidth.json';
import maxWidthFR from './fr/maxWidth.json';
import maxWidthDE from './de/maxWidth.json';
import maxWidthIT from './it/maxWidth.json';
import maxWidthAR from './ar/maxWidth.json';

// define namespaces
export const namespaces = {
Expand Down Expand Up @@ -103,6 +108,7 @@ const en = {
...itemTypeEN,
...contextEN,
...flagEN,
...maxWidthEN,
},
[namespaces.library]: libraryEN,
[namespaces.mail]: mailEN,
Expand All @@ -123,6 +129,7 @@ const fr = {
...itemTypeFR,
...contextFR,
...flagFR,
...maxWidthFR,
},
[namespaces.library]: libraryFR,
[namespaces.mail]: mailFR,
Expand All @@ -143,6 +150,7 @@ const de = {
...itemTypeDE,
...contextDE,
...flagDE,
...maxWidthDE,
},
[namespaces.library]: libraryDE,
[namespaces.mail]: mailDE,
Expand All @@ -163,6 +171,7 @@ const it = {
...itemTypeIT,
...contextIT,
...flagIT,
...maxWidthIT,
},
[namespaces.library]: libraryIT,
[namespaces.mail]: mailIT,
Expand All @@ -183,6 +192,7 @@ const ar = {
...itemTypeAR,
...contextAR,
...flagAR,
...maxWidthAR,
},
[namespaces.library]: libraryAR,
[namespaces.mail]: mailAR,
Expand Down
1 change: 1 addition & 0 deletions src/langs/it/maxWidth.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}

0 comments on commit 36c1bed

Please sign in to comment.