fix: Set detected language on first login, remove auto-detect language option

This commit is contained in:
Maksim Eltyshev
2025-10-15 00:08:29 +02:00
parent 20d8f8ae53
commit fee300908c
44 changed files with 39 additions and 65 deletions

View File

@@ -57,7 +57,6 @@
* language:
* type: string
* enum: [ar-YE, bg-BG, cs-CZ, da-DK, de-DE, el-GR, en-GB, en-US, es-ES, et-EE, fa-IR, fi-FI, fr-FR, hu-HU, id-ID, it-IT, ja-JP, ko-KR, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sk-SK, sr-Cyrl-RS, sr-Latn-RS, sv-SE, tr-TR, uk-UA, uz-UZ, zh-CN, zh-TW]
* nullable: true
* description: Preferred language for user interface and notifications
* example: en-US
* subscribeToOwnCards:
@@ -167,7 +166,6 @@ module.exports = {
language: {
type: 'string',
isIn: User.LANGUAGES,
allowNull: true,
},
subscribeToOwnCards: {
type: 'boolean',