0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00

Merge pull request #278 from Monogramm/ru-locale

🌐 Russian localisation
This commit is contained in:
Andrey Antukh 2020-07-21 12:26:09 +02:00 committed by GitHub
commit c2a4dc6859
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 517 additions and 257 deletions

View file

@ -82,7 +82,7 @@
(-> state
(dissoc "unused")
(update "used-in" conj rpath)))))
(assoc data code {"translations" {"en" nil "fr" nil "es" nil}
(assoc data code {"translations" {"en" nil "fr" nil "es" nil "ru" nil}
"used-in" [rpath]}))))
(defn- clean-removed-translations

File diff suppressed because it is too large Load diff

View file

@ -51,7 +51,8 @@
[:& select {:options [{:label "English" :value "en"}
{:label "Français" :value "fr"}
{:label "Español" :value "es"}]
{:label "Español" :value "es"}
{:label "Русский" :value "ru"}]
:label (t locale "settings.language-label")
:default "en"
:name :lang}]

View file

@ -13,6 +13,8 @@
["date-fns/formatDistanceToNow" :as df-format-distance]
["date-fns/locale/fr" :as df-fr-locale]
["date-fns/locale/en-US" :as df-en-locale]
["date-fns/locale/es" :as df-es-locale]
["date-fns/locale/ru" :as df-ru-locale]
[goog.object :as gobj]))
(def ^:private locales
@ -20,7 +22,11 @@
:en df-en-locale
:en_US df-en-locale
:fr df-fr-locale
:fr_FR df-fr-locale})
:fr_FR df-fr-locale
:es df-es-locale
:es_ES df-es-locale
:ru df-ru-locale
:ru_RU df-ru-locale})
(defn now
"Return the current Instant."