From 5a2c37b4134feeab8f6ec2bb65eabc83052d6ba3 Mon Sep 17 00:00:00 2001 From: Daniel Ennis Date: Tue, 25 Jul 2017 01:15:38 -0400 Subject: [PATCH] Updated Locales (markdown) --- Locales.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Locales.md b/Locales.md index 48c5ed8..b72781f 100644 --- a/Locales.md +++ b/Locales.md @@ -75,3 +75,16 @@ So if you need to use non English language for ACF, then simply ensure you load ```java manager.getLocales().setDefaultLocale(locale); ``` + +## Locale References +Java provides a few constants in the Locale class. ACF has taken that concept and built an even larger constant pool for more languages in `Locales` + +So if you need a reference to a Locale, you may use `Locales.SPANISH` for example. This should behave the same as doing `new Locale("es")`. + +## Adding more languages to ACF +Simply PR new files to the `languages` folder following same pattern as the others. Then in `CommandManager.java` add the language to the `supportedLanguages` Set at the top. +Please use a reference to the Locales class, adding a Locale if the locale is missing. + +I am wanting to keep it to just root languages for now, and not country-specific dialects. + +You can load country specific versions using the API. We do not need it in core. \ No newline at end of file