Skip to content

Commit

Permalink
[JS] Fix clés de traduction générées à tort
Browse files Browse the repository at this point in the history
  • Loading branch information
JabX committed Aug 27, 2024
1 parent 3d83ba7 commit d2dab38
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ private void WriteSubModule(FileWriter fw, string lang, IEnumerable<IFieldProper
else
{
fw.WriteLine(level, $@"""{submodule.Key.Split('.').First().ToCamelCase()}"": {{");
WriteSubModule(fw, lang, submodule.Select(m => m.Key).SelectMany(c => c.Properties).OfType<IFieldProperty>(), isComment, level + 1);
WriteSubModule(fw, lang, submodule.SelectMany(m => m), isComment, level + 1);
if (isLast)
{
fw.WriteLine(level, "}");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,11 @@
}
},
"profil": {
"dateCreation": "Date de création",
"dateModification": "Date de modification",
"droits": "Droits",
"id": "Id technique du profil",
"libelle": "Libellé du profil"
},
"profilItem": {
"id": "Id technique du profil",
"libelle": "Libellé du profil",
"nombreUtilisateurs": "Nombre d'utilisateurs affectés"
},
"typeDroit": {
Expand All @@ -46,8 +42,6 @@
"utilisateur": {
"actif": "Actif",
"adresse": "Adresse",
"dateCreation": "Date de création",
"dateModification": "Date de modification",
"dateNaissance": "Date de naissance",
"email": "Adresse email",
"id": "Id technique",
Expand Down
6 changes: 0 additions & 6 deletions samples/generators/focus/src/locale/securite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,11 @@ export const securite = {
typeDroitCode: "TypeDroitCode"
},
profil: {
dateCreation: "Date de création",
dateModification: "Date de modification",
droits: "Droits",
id: "Id technique du profil",
libelle: "Libellé du profil"
},
profilItem: {
id: "Id technique du profil",
libelle: "Libellé du profil",
nombreUtilisateurs: "Nombre d'utilisateurs affectés"
},
typeDroit: {
Expand All @@ -34,8 +30,6 @@ export const securite = {
utilisateur: {
actif: "Actif",
adresse: "Adresse",
dateCreation: "Date de création",
dateModification: "Date de modification",
dateNaissance: "Date de naissance",
email: "Adresse email",
id: "Id technique",
Expand Down

0 comments on commit d2dab38

Please sign in to comment.