From 49215b955b1ed8d121613d90a604f33860c4364b Mon Sep 17 00:00:00 2001 From: nyavro Date: Thu, 24 Dec 2020 19:19:26 +0300 Subject: [PATCH] Support for laravel translation directory #90 Sample project --- examples/php-arrays/resources/lang/de/auth.php | 12 ++++++++++++ examples/php-arrays/resources/lang/en/auth.php | 12 ++++++++++++ examples/php-arrays/usage.php | 1 + 3 files changed, 25 insertions(+) create mode 100644 examples/php-arrays/resources/lang/de/auth.php create mode 100644 examples/php-arrays/resources/lang/en/auth.php create mode 100644 examples/php-arrays/usage.php diff --git a/examples/php-arrays/resources/lang/de/auth.php b/examples/php-arrays/resources/lang/de/auth.php new file mode 100644 index 00000000..2bd90235 --- /dev/null +++ b/examples/php-arrays/resources/lang/de/auth.php @@ -0,0 +1,12 @@ + "eins", + "two" => "zwei", +); + +// Using the short array syntax +$auths = [ + "three" => "drei", + "four" => "vier", +]; +?> \ No newline at end of file diff --git a/examples/php-arrays/resources/lang/en/auth.php b/examples/php-arrays/resources/lang/en/auth.php new file mode 100644 index 00000000..0404a5a0 --- /dev/null +++ b/examples/php-arrays/resources/lang/en/auth.php @@ -0,0 +1,12 @@ + "one", + "two" => "two", +); + +// Using the short array syntax +$auths = [ + "three" => "three", + "four" => "four", +]; +?> \ No newline at end of file diff --git a/examples/php-arrays/usage.php b/examples/php-arrays/usage.php new file mode 100644 index 00000000..b3d9bbc7 --- /dev/null +++ b/examples/php-arrays/usage.php @@ -0,0 +1 @@ +