♻️ Refactor translations subsystem.

Migrate from plain json files to gettext.
This commit is contained in:
Andrey Antukh 2021-04-12 09:29:09 +02:00 committed by Andrés Moya
parent b9ca4e7f9b
commit 4cca8f0600
13 changed files with 13827 additions and 6614 deletions

View file

@ -7,14 +7,14 @@
(ns app.util.i18n
"A i18n foundation."
(:require
[app.config :as cfg]
[app.util.storage :refer [storage]]
[app.util.transit :as t]
[beicon.core :as rx]
[cuerdas.core :as str]
[goog.object :as gobj]
[okulary.core :as l]
[rumext.alpha :as mf]
[app.config :as cfg]
[app.util.storage :refer [storage]]
[app.util.transit :as t]))
[rumext.alpha :as mf]))
(def supported-locales
[{:label "English" :value "en"}
@ -23,6 +23,7 @@
{:label "Deutsch (community)" :value "de"}
{:label "Русский (community)" :value "ru"}
{:label "Türkçe (community)" :value "tr"}
{:label "Ελληνική γλώσσα (community)" :value "gr"}
{:label "简体中文 (community)" :value "zh_cn"}])
(defn- parse-locale