Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Need a way to communicate translation hints #21

Closed
Colengms opened this issue Sep 6, 2019 · 2 comments
Closed

Need a way to communicate translation hints #21

Colengms opened this issue Sep 6, 2019 · 2 comments

Comments

@Colengms
Copy link

Colengms commented Sep 6, 2019

Similar to #20 , we would like to be able to provide notes/hints for translators. Perhaps hints could be passed directly to the call to localize() for inclusion in exported xlf files.

One possible approach might be an alternate localize() function which accepts an additional string for notes/hints. i.e. localize_with_hint(key, hint, localizableString, ...stringArgs)

This would seem to require a change to the format of the exported JSON, or perhaps an additional exported file containing a mapping of hints to string keys, which can be read when generating the xlf for export.

@Colengms
Copy link
Author

This issue is becoming more critical for us. We would like to use markdown in some cases in which text is localized, and we do not have a way to communicate guidence to our localization team that markdown should be used for those strings. Because nls-dev will regenerate loc export files, there is not a clear way for us to manage adding hint info (to existing fields for that purpose) to that file.

@Colengms Colengms changed the title [Feature Request] A way to communicate translation hints (i.e. in call to localize()) Need a way to communicate translation hints Feb 14, 2020
@sana-ajani
Copy link

@Colengms Colengms closed this as completed Jun 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants