Skip to content

Commit 00a9ddb

Browse files
feat(localizations): Add be-BY localization (clerk#4280)
Co-authored-by: Tom Milewski <me@tm.codes>
1 parent e29a806 commit 00a9ddb

6 files changed

Lines changed: 911 additions & 0 deletions

File tree

.changeset/unlucky-crabs-hunt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@clerk/localizations": minor
3+
---
4+
5+
Add be-BY translation

packages/localizations/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"files": [
5454
"dist",
5555
"ar-SA",
56+
"be-BY",
5657
"ca-ES",
5758
"cs-CZ",
5859
"da-DK",

packages/localizations/src/be-BY.ts

Lines changed: 896 additions & 0 deletions
Large diffs are not rendered by default.

packages/localizations/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export { arSA } from './ar-SA';
2+
export { beBY } from './be-BY';
23
export { enUS } from './en-US';
34
export { frFR } from './fr-FR';
45
export { daDK } from './da-DK';

packages/localizations/src/utils/generate.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import * as path from 'node:path';
1010
import * as fs from 'fs';
1111

1212
import { arSA } from '../ar-SA';
13+
import { beBY } from '../be-BY';
1314
import { bgBG } from '../bg-BG';
1415
import { csCZ } from '../cs-CZ';
1516
import { daDK } from '../da-DK';
@@ -159,6 +160,7 @@ function run(langObj: any, name: string) {
159160
run(enUS, 'en-US');
160161
run(elGR, 'el-GR');
161162
run(arSA, 'ar-SA');
163+
run(beBY, 'be-BY');
162164
run(csCZ, 'cs-CZ');
163165
run(daDK, 'da-DK');
164166
run(deDE, 'de-DE');

packages/react/src/contexts/__tests__/ClerkProvider.test.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {
2+
beBY,
23
csCZ,
34
deDE,
45
enUS,
@@ -135,6 +136,11 @@ describe('ClerkProvider', () => {
135136
});
136137

137138
it('works with all our prebuilt localizations', () => {
139+
expectTypeOf({
140+
...defaultProps,
141+
localization: beBY,
142+
}).toMatchTypeOf<ClerkProviderProps>();
143+
138144
expectTypeOf({
139145
...defaultProps,
140146
localization: deDE,

0 commit comments

Comments
 (0)