Skip to content

Commit c143157

Browse files
Merge pull request #56 from orestesmas/ca_l10n
Catalan translation contributed
2 parents f10d1f9 + 58b9ef8 commit c143157

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Please add your language to this list as well while you are making your PR. Put
3939
What we have so far:
4040
- en - Reference
4141
- bg
42+
- ca
4243
- cn
4344
- cs
4445
- da

src/localize/languages/ca.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"common": {
3+
"version": "versió",
4+
"current": "Actual"
5+
},
6+
"extra_states": {
7+
"window_open": "Finestra oberta",
8+
"night_mode": "Mode nocturn",
9+
"eco": "Eco",
10+
"summer": "Estiu"
11+
}
12+
}

src/localize/localize.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import * as sv from './languages/sv.json';
2121
import * as bg from './languages/bg.json';
2222
import * as fi from './languages/fi.json';
2323
import * as ro from './languages/ro.json';
24+
import * as ca from './languages/ca.json';
2425

2526
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2627
const languages: any = {
@@ -47,6 +48,7 @@ const languages: any = {
4748
bg: bg,
4849
fi: fi,
4950
ro: ro,
51+
ca: ca,
5052
};
5153

5254
export function localize(string: string, search = '', replace = ''): string {

0 commit comments

Comments
 (0)