summaryrefslogtreecommitdiff
path: root/src/application/i18n.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/application/i18n.php')
-rw-r--r--src/application/i18n.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/application/i18n.php b/src/application/i18n.php
index cdc61e1..a1f2f24 100644
--- a/src/application/i18n.php
+++ b/src/application/i18n.php
@@ -183,6 +183,12 @@ function i18n_get(string $msgid, array $params = [], ?string $context = null): s
);
}
+function i18n_metadata(string $lang): array {
+ global $__i18n_msg_metadata;
+
+ return $__i18n_msg_metadata[$lang] ?? [];
+}
+
function i18n_get_plural(string $msgid_singular, string $msgid_plural, int $count, array $params = [], ?string $context = null): string {
global $__i18n_current_locale, $__i18n_msg_metadata, $__i18n_msg_store_plural;