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

@pskelin pskelin merged commit 54a3f15 into main Jan 6, 2026
12 checks passed
@pskelin pskelin deleted the i18n-encoding-inline branch January 6, 2026 08:32
@ui5-webcomponents-bot
Copy link
Collaborator

🎉 This PR is included in version v2.19.0-rc.0 🎉

The release is available on v2.19.0-rc.0

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants