Skip to content

Conversation

@pskelin
Copy link
Contributor

@pskelin pskelin commented Dec 10, 2025

Translation systems can output two formats for messagebundle_XX.properties files:
either UTF-8, or UTF encoded escape sequences.

Our tooling handles UTF-8 correctly: verfügbar
Escape sequences are read by the properies files reader with two slashes and incorrectly shown on screen like: verf\u00FCgbar

This fix inlines the escape sequenses making the .json files work correctly, while also being smaller and more readable.


const convertToJSON = async (file, distPath) => {
const properties = PropertiesReader(file)._properties;
inlineUTF(properties);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: Lets assign that to properties because it's not very intuitive that properties will be object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants