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>
This commit is contained in:
81
db/migrations/1770043888_updated_settings.go
Normal file
81
db/migrations/1770043888_updated_settings.go
Normal file
@@ -0,0 +1,81 @@
|
||||
package migrations
|
||||
|
||||
import (
|
||||
"github.com/pocketbase/pocketbase/core"
|
||||
m "github.com/pocketbase/pocketbase/migrations"
|
||||
)
|
||||
|
||||
func init() {
|
||||
m.Register(func(app core.App) error {
|
||||
collection, err := app.FindCollectionByNameOrId("uavt73rsqcn1n13")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// update field
|
||||
if err := collection.Fields.AddMarshaledJSONAt(1, []byte(`{
|
||||
"hidden": false,
|
||||
"id": "0sepzvkh",
|
||||
"maxSelect": 1,
|
||||
"name": "language",
|
||||
"presentable": false,
|
||||
"required": false,
|
||||
"system": false,
|
||||
"type": "select",
|
||||
"values": [
|
||||
"en",
|
||||
"de",
|
||||
"fr",
|
||||
"hu",
|
||||
"it",
|
||||
"nl",
|
||||
"pl",
|
||||
"pt",
|
||||
"zh",
|
||||
"es",
|
||||
"eu",
|
||||
"ru",
|
||||
"no"
|
||||
]
|
||||
}`)); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return app.Save(collection)
|
||||
}, func(app core.App) error {
|
||||
collection, err := app.FindCollectionByNameOrId("uavt73rsqcn1n13")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// update field
|
||||
if err := collection.Fields.AddMarshaledJSONAt(1, []byte(`{
|
||||
"hidden": false,
|
||||
"id": "0sepzvkh",
|
||||
"maxSelect": 1,
|
||||
"name": "language",
|
||||
"presentable": false,
|
||||
"required": false,
|
||||
"system": false,
|
||||
"type": "select",
|
||||
"values": [
|
||||
"en",
|
||||
"de",
|
||||
"fr",
|
||||
"hu",
|
||||
"it",
|
||||
"nl",
|
||||
"pl",
|
||||
"pt",
|
||||
"zh",
|
||||
"es",
|
||||
"eu",
|
||||
"ru"
|
||||
]
|
||||
}`)); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return app.Save(collection)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user