Precompile latin to arab ICU transliterations

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-09-19 09:19:28 +02:00
parent d97927da13
commit 86ca52c2cb
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -11,7 +11,8 @@ defmodule Mobilizon.Cldr do
do: Mobilizon.Web.Gettext,
else: nil
),
providers: [Cldr.Number, Cldr.Calendar, Cldr.DateTime, Cldr.Language]
providers: [Cldr.Number, Cldr.Calendar, Cldr.DateTime, Cldr.Language],
precompile_transliterations: [{:latn, :arabext}]
def known_locale?(locale) do
Mobilizon.Cldr.known_locale_names()