Skip to content

Commit

Permalink
Turn on pseudo locale generation for compilation.
Browse files Browse the repository at this point in the history
RELNOTES: android_binary.aapt_version='aapt2' now supports en_XA and ar_XB
PiperOrigin-RevId: 198555305
  • Loading branch information
corbinrsmith-work authored and Copybara-Service committed May 30, 2018
1 parent 99a7c44 commit 90446c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ private List<String> convertToQualifiers(ConfigValue configValue) {
// The proto stores it in a BCP-47 format, but the parser requires a b+ and all the - as +.
// It's a nice a little impedance mismatch.
new LocaleQualifier()
.checkAndSet("b+" + protoConfig.getLocale().replaceAll("-", "+"), configuration);
.checkAndSet("b+" + protoConfig.getLocale().replace("-", "+"), configuration);
}

if (LAYOUT_DIRECTION_MAP.containsKey(protoConfig.getLayoutDirection())) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public class Aapt2ConfigOptions extends OptionsBase {
documentationCategory = OptionDocumentationCategory.UNCATEGORIZED,
effectTags = {OptionEffectTag.UNKNOWN},
name = "generatePseudoLocale",
defaultValue = "false",
defaultValue = "true",
category = "config",
help = "Whether to generate pseudo locales during compilation."
)
Expand Down

0 comments on commit 90446c1

Please sign in to comment.