Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simple data localization #307

Merged
merged 1 commit into from
Mar 21, 2023
Merged

Conversation

mandelsoft
Copy link
Contributor

@mandelsoft mandelsoft commented Mar 20, 2023

What this PR does / why we need it:
This PR deals with localization on a single data object.

The change introduces some basic functions around a type ValueMappings , which just describes a set of substitution rules, which can be applied to a single data object (SubstituteMappings) . With LocalizeMappings a set of (pure non-filename based) localization rules can be mapped to such value mappings combined with config mappings and then applied to a single byte array,

Which issue(s) this PR fixes:
Fixes #300

Special notes for your reviewer:

Release Notes:

@mandelsoft mandelsoft requested a review from Skarlso March 20, 2023 08:23
Copy link
Contributor

@Skarlso Skarlso left a comment

Choose a reason for hiding this comment

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

Nice one! Thanks for this.

@Skarlso Skarlso merged commit edaddfc into open-component-model:main Mar 21, 2023
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.

Add substitution capability that doesn't require a virtual filesystem or a filename
2 participants