Skip to content

Commit

Permalink
feat: add the Nepali language
Browse files Browse the repository at this point in the history
  • Loading branch information
aradzie committed Mar 13, 2024
1 parent bc133f8 commit 31cc89c
Show file tree
Hide file tree
Showing 9 changed files with 492 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 @@ -32,6 +32,7 @@ export type LocaleId =
| "hu"
| "it"
| "ja"
| "ne"
| "nl"
| "pl"
| "pt-br"
Expand All @@ -56,6 +57,7 @@ export const allLocales: readonly LocaleId[] = [
"hu",
"it",
"ja",
"ne",
"nl",
"pl",
"pt-br",
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 @@ -17,6 +17,7 @@ export async function loadMessages(locale: LocaleId): Promise<Messages> {
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 "ne": return (await import(/* webpackChunkName: "messages-ne" */ "./messages/ne.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;
case "pt-br": return (await import(/* webpackChunkName: "messages-pt-br" */ "./messages/pt-br.json")).default;
Expand Down
1 change: 1 addition & 0 deletions packages/keybr-intl/lib/messages/ne.json

Large diffs are not rendered by default.

409 changes: 409 additions & 0 deletions packages/keybr-intl/translations/ne.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 @@ -1005,6 +1005,26 @@ Generated by [AVA](https://avajs.dev).
type: 'a',
},
' ',
{
children: [
'ne',
],
props: {
className: 'link localeLink',
download: undefined,
href: '/ne/index',
id: undefined,
onClick: undefined,
onMouseDown: undefined,
onMouseEnter: undefined,
onMouseLeave: undefined,
onMouseUp: undefined,
target: undefined,
title: 'नेपाली',
},
type: 'a',
},
' ',
{
children: [
'nl',
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 @@ -172,6 +172,15 @@ Generated by [AVA](https://avajs.dev).
},
type: 'link',
},
{
children: null,
props: {
href: 'https://www.keybr.com/ne/path',
hrefLang: 'ne',
rel: 'alternate',
},
type: 'link',
},
{
children: null,
props: {
Expand Down Expand Up @@ -1440,6 +1449,26 @@ Generated by [AVA](https://avajs.dev).
type: 'a',
},
' ',
{
children: [
'ne',
],
props: {
className: 'link localeLink',
download: undefined,
href: '/ne/path',
id: undefined,
onClick: undefined,
onMouseDown: undefined,
onMouseEnter: undefined,
onMouseLeave: undefined,
onMouseUp: undefined,
target: undefined,
title: 'नेपाली',
},
type: 'a',
},
' ',
{
children: [
'nl',
Expand Down Expand Up @@ -1985,6 +2014,15 @@ Generated by [AVA](https://avajs.dev).
},
type: 'link',
},
{
children: null,
props: {
href: 'https://www.keybr.com/ne/path',
hrefLang: 'ne',
rel: 'alternate',
},
type: 'link',
},
{
children: null,
props: {
Expand Down Expand Up @@ -3231,6 +3269,26 @@ Generated by [AVA](https://avajs.dev).
type: 'a',
},
' ',
{
children: [
'ne',
],
props: {
className: 'link localeLink',
download: undefined,
href: '/ne/path',
id: undefined,
onClick: undefined,
onMouseDown: undefined,
onMouseEnter: undefined,
onMouseLeave: undefined,
onMouseUp: undefined,
target: undefined,
title: 'नेपाली',
},
type: 'a',
},
' ',
{
children: [
'nl',
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 @@ -22,6 +22,7 @@ const allLocales = [
"hu",
"it",
"ja",
"ne",
"nl",
"pl",
"pt-br",
Expand Down

0 comments on commit 31cc89c

Please sign in to comment.