From a83e3baea86a2f6f0b9444c04850c446f0a89a86 Mon Sep 17 00:00:00 2001 From: petterreinholdtsen Date: Sun, 1 Oct 2023 01:17:11 +0200 Subject: [PATCH] Use written language codes for Norwegian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is no 'no/Norwegian' written language, the existing ones use either 'nb/Norwegian Bokmål' or 'nn/Norwegian Nynorsk'. As the majority is written in Norwegian Bokmål, those using 'no' as the language code is most likely meaning the 'nb' variant. Please avoid using the unspecific 'no' language code. --- backend/oasst_backend/utils/database_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/oasst_backend/utils/database_utils.py b/backend/oasst_backend/utils/database_utils.py index 800d4b4c78..3652c45546 100644 --- a/backend/oasst_backend/utils/database_utils.py +++ b/backend/oasst_backend/utils/database_utils.py @@ -34,7 +34,8 @@ "it": "italian", "lt": "lithuanian", "ne": "nepali", - "no": "norwegian", + "nb": "norwegian bokmål", + "nn": "norwegian nynorsk", "pt": "portuguese", "ro": "romanian", "ru": "russian",