Skip to content

Commit dacdaea

Browse files
Flomppalhaland
andauthored
New Crowdin updates (#622)
* New translations en.json (French) * New translations en.json (Dutch) * New translations en.json (Dutch) * New translations en.json (Russian) * New translations en.json (Russian) * New translations en.json (French) * New translations en.json (French) * New translations en.json (Spanish) * New translations en.json (Spanish) * New translations en.json (Czech) * New translations en.json (Czech) * New translations en.json (Czech) * New translations en.json (Czech) * New translations en.json (Czech) * New translations en.json (Czech) * New translations en.json (Czech) * New translations en.json (Czech) * New translations en.json (Czech) * New translations en.json (Czech) * New translations en.json (Czech) * New translations en.json (Czech) * New translations en.json (German) * New translations en.json (French) * New translations en.json (German) * New translations en.json (German) * New translations en.json (German) * New translations en.json (German) * fixes valhalla spelling * Added Norwegian translation (#668) * adds norwegian * minor fixes in de --------- Co-authored-by: Christian Beutel <> Co-authored-by: Pål Håland <4449863+palhaland@users.noreply.github.com>
1 parent 6d54949 commit dacdaea

File tree

18 files changed

+1213
-259
lines changed

18 files changed

+1213
-259
lines changed
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
package migrations
2+
3+
import (
4+
"github.com/pocketbase/pocketbase/core"
5+
m "github.com/pocketbase/pocketbase/migrations"
6+
)
7+
8+
func init() {
9+
m.Register(func(app core.App) error {
10+
collection, err := app.FindCollectionByNameOrId("uavt73rsqcn1n13")
11+
if err != nil {
12+
return err
13+
}
14+
15+
// update field
16+
if err := collection.Fields.AddMarshaledJSONAt(1, []byte(`{
17+
"hidden": false,
18+
"id": "0sepzvkh",
19+
"maxSelect": 1,
20+
"name": "language",
21+
"presentable": false,
22+
"required": false,
23+
"system": false,
24+
"type": "select",
25+
"values": [
26+
"en",
27+
"de",
28+
"fr",
29+
"hu",
30+
"it",
31+
"nl",
32+
"pl",
33+
"pt",
34+
"zh",
35+
"es",
36+
"eu",
37+
"ru",
38+
"no"
39+
]
40+
}`)); err != nil {
41+
return err
42+
}
43+
44+
return app.Save(collection)
45+
}, func(app core.App) error {
46+
collection, err := app.FindCollectionByNameOrId("uavt73rsqcn1n13")
47+
if err != nil {
48+
return err
49+
}
50+
51+
// update field
52+
if err := collection.Fields.AddMarshaledJSONAt(1, []byte(`{
53+
"hidden": false,
54+
"id": "0sepzvkh",
55+
"maxSelect": 1,
56+
"name": "language",
57+
"presentable": false,
58+
"required": false,
59+
"system": false,
60+
"type": "select",
61+
"values": [
62+
"en",
63+
"de",
64+
"fr",
65+
"hu",
66+
"it",
67+
"nl",
68+
"pl",
69+
"pt",
70+
"zh",
71+
"es",
72+
"eu",
73+
"ru"
74+
]
75+
}`)); err != nil {
76+
return err
77+
}
78+
79+
return app.Save(collection)
80+
})
81+
}

web/src/lib/i18n/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ register('fr', () => import('./locales/fr.json'))
1212
register('hu', () => import('./locales/hu.json'))
1313
register('it', () => import('./locales/it.json'))
1414
register('nl', () => import('./locales/nl.json'))
15+
register('no', () => import('./locales/no.json'))
1516
register('pl', () => import('./locales/pl.json'))
1617
register('pt', () => import('./locales/pt.json'))
1718
register('ru', () => import('./locales/ru.json'))

0 commit comments

Comments
 (0)