Skip to content

Commit

Permalink
Fix #172: Support pseudo-locales
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-englert committed Sep 24, 2018
1 parent 0d18704 commit ce299a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ResXManager.Model/ResourceManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,11 @@ private static string[] GetSortedCultureNames()

var allCultures = CultureInfo.GetCultures(CultureTypes.AllCultures);

var pseudoLocales = new[] { "qps-ploc", "qps-ploca", "qps-plocm", "qps-Latn-x-sh" };

var cultureNames = allCultures
.SelectMany(culture => new[] { culture.IetfLanguageTag, culture.Name })
.Concat(pseudoLocales)
.Distinct()
.ToArray();

Expand Down

0 comments on commit ce299a8

Please sign in to comment.