aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-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)