Skip to content

Commit

Permalink
fix: incorrect display of the localized name
Browse files Browse the repository at this point in the history
  • Loading branch information
anywie authored and 1mrekq committed Dec 25, 2023
1 parent ae67247 commit 57aeddf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/libs/shared/src/lib/utils/localize-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ export const localizeSchemaAdditionalKeys = (
schemaKeys.add(String(match[1]));
}

schemaKeys.forEach((key) => (plainSchema = plainSchema.replace(key, additionalKeys[key]?.[lang] || '')));
schemaKeys.forEach(
(key) =>
(plainSchema = plainSchema.replace(REGEX_PARSE_SCHEMA_LOCALIZATION, additionalKeys[key]?.[lang] || ''))
);

return JSON.parse(plainSchema);
}
Expand Down

0 comments on commit 57aeddf

Please sign in to comment.