aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-08-03 17:25:06 +0200
committerRobert Jaros <rjaros@finn.pl>2019-08-03 17:25:06 +0200
commit3705853638c85a1ac3935d9b6e70ec801ebfb301 (patch)
treeb369e279649553bc511e97a9754cfb5109b8681e /src
parent1452af25429363c47938aa92fdb37464995c1fe3 (diff)
downloadkvision-3705853638c85a1ac3935d9b6e70ec801ebfb301.tar.gz
kvision-3705853638c85a1ac3935d9b6e70ec801ebfb301.tar.bz2
kvision-3705853638c85a1ac3935d9b6e70ec801ebfb301.zip
Top level helper functions for i18n.
Diffstat (limited to 'src')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/i18n/I18n.kt10
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)