Skip to content

Commit

Permalink
feat: add the Italian language
Browse files Browse the repository at this point in the history
  • Loading branch information
aradzie committed Mar 5, 2024
1 parent 56e65fb commit 1aedac5
Show file tree
Hide file tree
Showing 9 changed files with 441 additions and 0 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 @@ -9,6 +9,7 @@ export type LocaleId =
| "fr"
| "he"
| "hu"
| "it"
| "ja"
| "nl"
| "pl"
Expand All @@ -30,6 +31,7 @@ export const allLocales: readonly LocaleId[] = [
"fr",
"he",
"hu",
"it",
"ja",
"nl",
"pl",
Expand Down
1 change: 1 addition & 0 deletions packages/keybr-intl/lib/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export async function loadMessages(locale: LocaleId): Promise<Messages> {
case "fr": return (await import(/* webpackChunkName: "messages-fr" */ "./messages/fr.json")).default;
case "he": return (await import(/* webpackChunkName: "messages-he" */ "./messages/he.json")).default;
case "hu": return (await import(/* webpackChunkName: "messages-hu" */ "./messages/hu.json")).default;
case "it": return (await import(/* webpackChunkName: "messages-it" */ "./messages/it.json")).default;
case "ja": return (await import(/* webpackChunkName: "messages-ja" */ "./messages/ja.json")).default;
case "nl": return (await import(/* webpackChunkName: "messages-nl" */ "./messages/nl.json")).default;
case "pl": return (await import(/* webpackChunkName: "messages-pl" */ "./messages/pl.json")).default;
Expand Down
1 change: 1 addition & 0 deletions packages/keybr-intl/lib/messages/it.json

Large diffs are not rendered by default.

358 changes: 358 additions & 0 deletions packages/keybr-intl/translations/it.json

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 @@ -947,6 +947,26 @@ Generated by [AVA](https://avajs.dev).
type: 'a',
},
' ',
{
children: [
'it',
],
props: {
className: 'link localeLink',
download: undefined,
href: '/it/index',
id: undefined,
onClick: undefined,
onMouseDown: undefined,
onMouseEnter: undefined,
onMouseLeave: undefined,
onMouseUp: undefined,
target: undefined,
title: 'Italiano',
},
type: 'a',
},
' ',
{
children: [
'ja',
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 @@ -154,6 +154,15 @@ Generated by [AVA](https://avajs.dev).
},
type: 'link',
},
{
children: null,
props: {
href: 'https://www.keybr.com/it/path',
hrefLang: 'it',
rel: 'alternate',
},
type: 'link',
},
{
children: null,
props: {
Expand Down Expand Up @@ -1392,6 +1401,26 @@ Generated by [AVA](https://avajs.dev).
type: 'a',
},
' ',
{
children: [
'it',
],
props: {
className: 'link localeLink',
download: undefined,
href: '/it/path',
id: undefined,
onClick: undefined,
onMouseDown: undefined,
onMouseEnter: undefined,
onMouseLeave: undefined,
onMouseUp: undefined,
target: undefined,
title: 'Italiano',
},
type: 'a',
},
' ',
{
children: [
'ja',
Expand Down Expand Up @@ -1939,6 +1968,15 @@ Generated by [AVA](https://avajs.dev).
},
type: 'link',
},
{
children: null,
props: {
href: 'https://www.keybr.com/it/path',
hrefLang: 'it',
rel: 'alternate',
},
type: 'link',
},
{
children: null,
props: {
Expand Down Expand Up @@ -3155,6 +3193,26 @@ Generated by [AVA](https://avajs.dev).
type: 'a',
},
' ',
{
children: [
'it',
],
props: {
className: 'link localeLink',
download: undefined,
href: '/it/path',
id: undefined,
onClick: undefined,
onMouseDown: undefined,
onMouseEnter: undefined,
onMouseLeave: undefined,
onMouseUp: undefined,
target: undefined,
title: 'Italiano',
},
type: 'a',
},
' ',
{
children: [
'ja',
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 @@ -20,6 +20,7 @@ const allLocales = [
"fr",
"he",
"hu",
"it",
"ja",
"nl",
"pl",
Expand Down

0 comments on commit 1aedac5

Please sign in to comment.