mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 23:49: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
|
(-> state
|
||||||
(dissoc "unused")
|
(dissoc "unused")
|
||||||
(update "used-in" conj rpath)))))
|
(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]}))))
|
"used-in" [rpath]}))))
|
||||||
|
|
||||||
(defn- clean-removed-translations
|
(defn- clean-removed-translations
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -51,7 +51,8 @@
|
||||||
|
|
||||||
[:& select {:options [{:label "English" :value "en"}
|
[:& select {:options [{:label "English" :value "en"}
|
||||||
{:label "Français" :value "fr"}
|
{:label "Français" :value "fr"}
|
||||||
{:label "Español" :value "es"}]
|
{:label "Español" :value "es"}
|
||||||
|
{:label "Русский" :value "ru"}]
|
||||||
:label (t locale "settings.language-label")
|
:label (t locale "settings.language-label")
|
||||||
:default "en"
|
:default "en"
|
||||||
:name :lang}]
|
:name :lang}]
|
||||||
|
|
|
@ -13,6 +13,8 @@
|
||||||
["date-fns/formatDistanceToNow" :as df-format-distance]
|
["date-fns/formatDistanceToNow" :as df-format-distance]
|
||||||
["date-fns/locale/fr" :as df-fr-locale]
|
["date-fns/locale/fr" :as df-fr-locale]
|
||||||
["date-fns/locale/en-US" :as df-en-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]))
|
[goog.object :as gobj]))
|
||||||
|
|
||||||
(def ^:private locales
|
(def ^:private locales
|
||||||
|
@ -20,7 +22,11 @@
|
||||||
:en df-en-locale
|
:en df-en-locale
|
||||||
:en_US df-en-locale
|
:en_US df-en-locale
|
||||||
:fr df-fr-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
|
(defn now
|
||||||
"Return the current Instant."
|
"Return the current Instant."
|
||||||
|
|
Loading…
Add table
Reference in a new issue