FLUID-6676: Use BCP-47 language codes for specifying message bundle localizations

Metadata

Source
FLUID-6676
Type
Improvement
Priority
Major
Status
Open
Resolution
N/A
Assignee
N/A
Reporter
Justin Obara
Created
2021-07-22T07:43:17.912-0400
Updated
2021-07-22T07:43:17.912-0400
Versions
N/A
Fixed Versions
  1. 5.0
Component
  1. Framework
  2. Prefs Framework
  3. UI Options

Description

When UIO was being designed, it went with language codes specified with an "_" instead of "-" to be consistent with Java Locale format ( https://www.oracle.com/technical-resources/articles/javase/locale.html ). This was the common format at the time.

These days BCP-47, using "-", is a common format for use on the web. We should either allow both formats or switch to using BCP-47.

For example currently only "en_CA" is accepted, but "en-CA" should be accepted.