Rob Fellows created NIFIREG-326:
-----------------------------------
Summary: Support a falling back to non-country locale to look for
translations
Key: NIFIREG-326
URL: https://issues.apache.org/jira/browse/NIFIREG-326
Project: NiFi Registry
Issue Type: Improvement
Affects Versions: 0.5.0
Reporter: Rob Fellows
Assignee: Rob Fellows
There is currently only a `messages.es.xlf`. This is the generic Spanish
version of the text. However, most users will have their browser locale set to
their language-country combination. Meaning users from Mexico would have a
locale of `es-mx` and the current logic will try to find the messages files for
`es-mx` and not find it, then default to the english version. However, it might
be better to strip off the country and try again in cases like this and give
the user an opportunity to get the messages for the generic language which in
this example would be `es` and it would return those messages.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)