1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-24 15:49:46 +02:00

feat: Languages with country codes

This commit is contained in:
Maksim Eltyshev 2024-07-21 19:33:57 +02:00
parent 79ad1836a8
commit 07e1903bb5
83 changed files with 211 additions and 99 deletions

View file

@ -5,11 +5,39 @@
* @docs :: https://sailsjs.com/docs/concepts/models-and-orm/models
*/
const LANGUAGES = [
'bg-BG',
'cs-CZ',
'da-DK',
'de-DE',
'en-US',
'es-ES',
'fa-IR',
'fr-FR',
'hu-HU',
'id-ID',
'it-IT',
'ja-JP',
'ko-KR',
'nl-NL',
'pl-PL',
'pt-BR',
'ro-RO',
'ru-RU',
'sk-SK',
'sv-SE',
'tr-TR',
'uk-UA',
'uz-UZ',
'zh-CN',
];
const OIDC = {
id: '_oidc',
};
module.exports = {
LANGUAGES,
OIDC,
attributes: {
@ -62,7 +90,7 @@ module.exports = {
},
language: {
type: 'string',
isNotEmptyString: true,
isIn: LANGUAGES,
allowNull: true,
},
subscribeToOwnCards: {