diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-08-03 17:25:06 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-08-03 17:25:06 +0200 |
commit | 3705853638c85a1ac3935d9b6e70ec801ebfb301 (patch) | |
tree | b369e279649553bc511e97a9754cfb5109b8681e /src/main/kotlin/pl | |
parent | 1452af25429363c47938aa92fdb37464995c1fe3 (diff) | |
download | kvision-3705853638c85a1ac3935d9b6e70ec801ebfb301.tar.gz kvision-3705853638c85a1ac3935d9b6e70ec801ebfb301.tar.bz2 kvision-3705853638c85a1ac3935d9b6e70ec801ebfb301.zip |
Top level helper functions for i18n.
Diffstat (limited to 'src/main/kotlin/pl')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/i18n/I18n.kt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/i18n/I18n.kt b/src/main/kotlin/pl/treksoft/kvision/i18n/I18n.kt index b61d6e40..2b315310 100644 --- a/src/main/kotlin/pl/treksoft/kvision/i18n/I18n.kt +++ b/src/main/kotlin/pl/treksoft/kvision/i18n/I18n.kt @@ -51,3 +51,13 @@ object I18n : I18nManager { } } + +/** + * A top level helper function for translations. + */ +fun tr(key: String): String = I18n.tr(key) + +/** + * A top level helper function for translations. + */ +fun gettext(key: String): String = I18n.gettext(key) |