From 3705853638c85a1ac3935d9b6e70ec801ebfb301 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 3 Aug 2019 17:25:06 +0200 Subject: Top level helper functions for i18n. --- src/main/kotlin/pl/treksoft/kvision/i18n/I18n.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/main/kotlin') 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) -- cgit