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

Feature/replace key #20

Merged
merged 5 commits into from
Aug 24, 2021
Merged

Feature/replace key #20

merged 5 commits into from
Aug 24, 2021

Conversation

brandongregoryscott
Copy link
Owner

Resolve #2 Ability to replace copy for a specific key
Resolves #8 Add flexibility for object/initializer that is used for adding/updating copy in culture file

Fits the primary use-case, though longer copy is still tedious to update (input box does not seem to scale to prefilled value, so it is one long string..). May benefit from a follow up feature that adds a setting to bring up the copy in an editor window with word-wrap auto-enabled if it exceeds some specific length, but this should be a good start.

For #8, I added support for reading from the first object literal in the culture file that contains the specified property. After doing some testing with our actual client files that are broken up in the way described in that issue, it was failing to find most of the keys that had already been professionally translated. If attempting to update a key that is not placed in the inline 'resources' object, it will prompt the user if they want to move the property to it for housekeeping purposes. (marking it as 'placeholder' translated)

brandongregoryscott and others added 4 commits August 22, 2021 21:06
…exist out of primary 'resources' object, stub out some logic to offer to move translation based on its original location
…plumb through 'placeHolder' param for selection wrapper
@brandongregoryscott brandongregoryscott added the enhancement New feature or request label Aug 24, 2021
@brandongregoryscott brandongregoryscott merged commit 49de5b2 into main Aug 24, 2021
@brandongregoryscott brandongregoryscott deleted the feature/replace-key branch August 24, 2021 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant