From 1eeacfe381c399a52b1d68eddba7f65b2af013e2 Mon Sep 17 00:00:00 2001 From: Tarvo Reinpalu Date: Tue, 17 Nov 2020 14:54:34 +0200 Subject: [PATCH] Add __nova() translation function --- composer.json | 5 ++++- src/helpers.php | 10 ++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 src/helpers.php diff --git a/composer.json b/composer.json index a16cb74..61173dd 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,10 @@ "autoload": { "psr-4": { "OptimistDigital\\NovaTranslationsLoader\\": "src/" - } + }, + "files": [ + "./src/helpers.php" + ] }, "extra": { "laravel": { diff --git a/src/helpers.php b/src/helpers.php new file mode 100644 index 0000000..79d9664 --- /dev/null +++ b/src/helpers.php @@ -0,0 +1,10 @@ +getFallbackLocale(), $fallback); + return $line; + } +}