feat: coge el idioma local
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2022-11-15 12:34:18 +01:00
parent fc516d4029
commit 284837083c
1 changed files with 2 additions and 1 deletions

View File

@ -88,7 +88,8 @@ module.exports = Self => {
}
const modelLocale = modelsLocale.get(modelName);
const locale = modelLocale && modelLocale.get('es');
const lang = ctx.req.getLocale();
const locale = modelLocale && modelLocale.get(lang);
json[modelName] = {
properties: model.definition.rawProperties,