universalviewer icon indicating copy to clipboard operation
universalviewer copied to clipboard

Implement inheritance for l10n files

Open demiankatz opened this issue 10 years ago • 2 comments

As of this writing, l10n files are extension-specific. However, it would be useful to add an "extends" feature that would allow the extension l10n files to inherit strings from a shared baseline. This is useful, for example, to share license strings added in #168.

The global configurations should live in files named like src/i10n/en-GB.json.

demiankatz avatar Oct 07 '15 16:10 demiankatz

We may want to discuss whether inheritance should be implicit (all extension l10n files always inherit from the base files) or explicit (a specific key must be specified in the extension l10n files, similar to the current config inheritance mechanism -- e.g. https://github.com/UniversalViewer/universalviewer/blob/master/src/extensions/uv-seadragon-extension/config/cy-GB.json#L2). If explicit, we may want to revisit exactly how parent configurations are specified -- in this situation, would we need to use "../../../" paths to navigate up to the parent?

demiankatz avatar Oct 07 '15 16:10 demiankatz

All issues will be triaged for further investigation or closure by the 28 September 2023. If your issue is still relevant and would like for it be investigated further please comment by 14 September 2023.

LlGC-szw avatar Aug 25 '23 11:08 LlGC-szw