refactor: refs #6425 fix failed tests
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
73c5a5b7d2
commit
b216112d2a
|
@ -1,10 +1,8 @@
|
|||
const files = import.meta.glob(`./locale/*.yml`);
|
||||
console.log('files: ', files);
|
||||
const modules = import.meta.glob(`../pages/**/locale/*.yml`);
|
||||
|
||||
const translations = {};
|
||||
|
||||
|
||||
for (const file in files) {
|
||||
const lang = file.split('/').at(2).split('.')[0];
|
||||
|
||||
|
@ -18,7 +16,6 @@ for (const file in files) {
|
|||
if (!module.endsWith(actualLang)) continue;
|
||||
modules[module]().then((t) => {
|
||||
Object.assign(translations[lang], t.default);
|
||||
console.log(' modules[module].default: ', t.default);
|
||||
})
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
customerFilter:
|
||||
filter:
|
||||
name: Name
|
||||
socialName: Social name
|
||||
name: 'Name'
|
||||
socialName: 'Social name'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
customerFilter:
|
||||
filter:
|
||||
name: Nombre
|
||||
socialName: Razón Social
|
||||
name: 'Nombre'
|
||||
socialName: 'Razón Social'
|
||||
|
|
Loading…
Reference in New Issue