From f6dd78734f86f8daed7c5d472e7a199301095ff8 Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Tue, 17 Sep 2024 13:39:12 +0200 Subject: More theme and i18n stuff --- src/application/i18n.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/application/i18n.php') 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; -- cgit v1.2.3