Repository navigation
Let a deployment override a few strings of another locale namespace (e.g. conversation hero.headline) #7781
Nemuritor01
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
locale.register(ns, locale, dict)refuses a second dictionary for a namespace and locale (locale namespace "…" already has locale "…"). That is right for ownership, but it means a deployment cannot change product copy such as the empty-conversation headline (conversation/hero.headline, "Into the Unknown") short of shipping a whole language throughaddLanguage.Would you consider an explicit override layer, e.g.
locale.override(ns, locale, partialDict), consulted before the owner's dictionary for the keys it names, and removable like every registration? It would keep single ownership of the full dictionary while letting a deployment rename a handful of product strings.All reactions