Skip to content

Commit

Permalink
feat: enable the Greek language
Browse files Browse the repository at this point in the history
  • Loading branch information
aradzie committed Jan 13, 2024
1 parent a547d2b commit 2ed162a
Show file tree
Hide file tree
Showing 10 changed files with 111 additions and 27 deletions.
2 changes: 2 additions & 0 deletions packages/keybr-intl/lib/locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export type LocaleId =
| "cs"
| "da"
| "de"
| "el"
| "en"
| "es"
| "fr"
Expand All @@ -16,6 +17,7 @@ export const allLocales: readonly LocaleId[] = [
"cs",
"da",
"de",
"el",
"en",
"es",
"fr",
Expand Down
4 changes: 4 additions & 0 deletions packages/keybr-intl/lib/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ export async function loadMessages(locale: LocaleId): Promise<Messages> {
return (
await import(/* webpackChunkName: "i18n-de" */ "./messages/de.json")
).default;
case "el":
return (
await import(/* webpackChunkName: "i18n-el" */ "./messages/el.json")
).default;
case "en":
return (
await import(/* webpackChunkName: "i18n-en" */ "./messages/en.json")
Expand Down
1 change: 1 addition & 0 deletions packages/keybr-intl/lib/messages/el.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/keybr-intl/lib/messages/gr.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions packages/keybr-pages-server/lib/NavMenu.test.tsx.md
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,26 @@ Generated by [AVA](https://avajs.dev).
type: 'a',
},
' ',
{
children: [
'el',
],
props: {
className: 'link',
download: undefined,
href: '/el/index',
id: undefined,
onClick: undefined,
onMouseDown: undefined,
onMouseEnter: undefined,
onMouseLeave: undefined,
onMouseUp: undefined,
target: undefined,
title: 'Greek (Ελληνικά)',
},
type: 'a',
},
' ',
{
children: [
'en',
Expand Down
Binary file modified packages/keybr-pages-server/lib/NavMenu.test.tsx.snap
Binary file not shown.
58 changes: 58 additions & 0 deletions packages/keybr-pages-server/lib/StandardLayout.test.tsx.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ Generated by [AVA](https://avajs.dev).
},
type: 'link',
},
{
children: null,
props: {
href: 'https://www.keybr.com/el/path',
hrefLang: 'el',
rel: 'alternate',
},
type: 'link',
},
{
children: null,
props: {
Expand Down Expand Up @@ -1189,6 +1198,26 @@ Generated by [AVA](https://avajs.dev).
type: 'a',
},
' ',
{
children: [
'el',
],
props: {
className: 'link',
download: undefined,
href: '/el/path',
id: undefined,
onClick: undefined,
onMouseDown: undefined,
onMouseEnter: undefined,
onMouseLeave: undefined,
onMouseUp: undefined,
target: undefined,
title: 'Greek (Ελληνικά)',
},
type: 'a',
},
' ',
{
children: [
'en',
Expand Down Expand Up @@ -1672,6 +1701,15 @@ Generated by [AVA](https://avajs.dev).
},
type: 'link',
},
{
children: null,
props: {
href: 'https://www.keybr.com/el/path',
hrefLang: 'el',
rel: 'alternate',
},
type: 'link',
},
{
children: null,
props: {
Expand Down Expand Up @@ -2748,6 +2786,26 @@ Generated by [AVA](https://avajs.dev).
type: 'a',
},
' ',
{
children: [
'el',
],
props: {
className: 'link',
download: undefined,
href: '/el/path',
id: undefined,
onClick: undefined,
onMouseDown: undefined,
onMouseEnter: undefined,
onMouseLeave: undefined,
onMouseUp: undefined,
target: undefined,
title: 'Greek (Ελληνικά)',
},
type: 'a',
},
' ',
{
children: [
'en',
Expand Down
Binary file modified packages/keybr-pages-server/lib/StandardLayout.test.tsx.snap
Binary file not shown.
1 change: 1 addition & 0 deletions scripts/gen-translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const allLocales = [
"cs",
"da",
"de",
"el",
"en",
"es",
"fr",
Expand Down

0 comments on commit 2ed162a

Please sign in to comment.