mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 08:20:45 -05:00
Merge pull request #278 from Monogramm/ru-locale
🌐 Russian localisation
This commit is contained in:
commit
c2a4dc6859
4 changed files with 517 additions and 257 deletions
|
@ -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
|
@ -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}]
|
||||
|
|
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue