From bd219cad889bcd267d17673b99bca37d4b91cb32 Mon Sep 17 00:00:00 2001 From: Benedikt Kulmann Date: Mon, 20 Nov 2023 06:36:26 +0100 Subject: [PATCH] feat: add more accepted languages Adding languages to the list of accepted languages which have 70% or more translation coverage in transifex + swedish by request of a community member who promised to help with translations. --- services/settings/pkg/service/v0/settings.go | 49 ++++++++++++++++++- .../settings/pkg/store/defaults/defaults.go | 48 ++++++++++++++++++ 2 files changed, 96 insertions(+), 1 deletion(-) diff --git a/services/settings/pkg/service/v0/settings.go b/services/settings/pkg/service/v0/settings.go index 0c38a81f902..40c65c59894 100644 --- a/services/settings/pkg/service/v0/settings.go +++ b/services/settings/pkg/service/v0/settings.go @@ -135,6 +135,14 @@ func generateBundleGuestRole() *settingsmsg.Bundle { var languageSetting = settingsmsg.Setting_SingleChoiceValue{ SingleChoiceValue: &settingsmsg.SingleChoiceList{ Options: []*settingsmsg.ListOption{ + { + Value: &settingsmsg.ListOptionValue{ + Option: &settingsmsg.ListOptionValue_StringValue{ + StringValue: "bg", + }, + }, + DisplayValue: "български", + }, { Value: &settingsmsg.ListOptionValue{ Option: &settingsmsg.ListOptionValue_StringValue{ @@ -158,7 +166,6 @@ var languageSetting = settingsmsg.Setting_SingleChoiceValue{ }, }, DisplayValue: "English", - Default: true, }, { Value: &settingsmsg.ListOptionValue{ @@ -192,6 +199,46 @@ var languageSetting = settingsmsg.Setting_SingleChoiceValue{ }, DisplayValue: "Italiano", }, + { + Value: &settingsmsg.ListOptionValue{ + Option: &settingsmsg.ListOptionValue_StringValue{ + StringValue: "nl", + }, + }, + DisplayValue: "Nederlands", + }, + { + Value: &settingsmsg.ListOptionValue{ + Option: &settingsmsg.ListOptionValue_StringValue{ + StringValue: "ko", + }, + }, + DisplayValue: "한국어", + }, + { + Value: &settingsmsg.ListOptionValue{ + Option: &settingsmsg.ListOptionValue_StringValue{ + StringValue: "sq", + }, + }, + DisplayValue: "Shqipja", + }, + { + Value: &settingsmsg.ListOptionValue{ + Option: &settingsmsg.ListOptionValue_StringValue{ + StringValue: "sv", + }, + }, + DisplayValue: "Svenska", + }, + { + Value: &settingsmsg.ListOptionValue{ + Option: &settingsmsg.ListOptionValue_StringValue{ + StringValue: "tr", + }, + }, + DisplayValue: "Türkçe", + }, }, }, } diff --git a/services/settings/pkg/store/defaults/defaults.go b/services/settings/pkg/store/defaults/defaults.go index 095a8df2fb6..55f617e4bc6 100644 --- a/services/settings/pkg/store/defaults/defaults.go +++ b/services/settings/pkg/store/defaults/defaults.go @@ -193,6 +193,14 @@ func generateBundleProfileRequest() *settingsmsg.Bundle { var languageSetting = settingsmsg.Setting_SingleChoiceValue{ SingleChoiceValue: &settingsmsg.SingleChoiceList{ Options: []*settingsmsg.ListOption{ + { + Value: &settingsmsg.ListOptionValue{ + Option: &settingsmsg.ListOptionValue_StringValue{ + StringValue: "bg", + }, + }, + DisplayValue: "български", + }, { Value: &settingsmsg.ListOptionValue{ Option: &settingsmsg.ListOptionValue_StringValue{ @@ -249,6 +257,46 @@ var languageSetting = settingsmsg.Setting_SingleChoiceValue{ }, DisplayValue: "Italiano", }, + { + Value: &settingsmsg.ListOptionValue{ + Option: &settingsmsg.ListOptionValue_StringValue{ + StringValue: "nl", + }, + }, + DisplayValue: "Nederlands", + }, + { + Value: &settingsmsg.ListOptionValue{ + Option: &settingsmsg.ListOptionValue_StringValue{ + StringValue: "ko", + }, + }, + DisplayValue: "한국어", + }, + { + Value: &settingsmsg.ListOptionValue{ + Option: &settingsmsg.ListOptionValue_StringValue{ + StringValue: "sq", + }, + }, + DisplayValue: "Shqipja", + }, + { + Value: &settingsmsg.ListOptionValue{ + Option: &settingsmsg.ListOptionValue_StringValue{ + StringValue: "sv", + }, + }, + DisplayValue: "Svenska", + }, + { + Value: &settingsmsg.ListOptionValue{ + Option: &settingsmsg.ListOptionValue_StringValue{ + StringValue: "tr", + }, + }, + DisplayValue: "Türkçe", + }, }, }, }