sendportal-core icon indicating copy to clipboard operation
sendportal-core copied to clipboard

How to enable a translation?

Open skinkie opened this issue 2 years ago • 1 comments

I am using the sendportal git repository, therefore I get sendportal-core import via composer. I notice there is an en.json, after creating an nl.json and updating sendportal-host.php nl is able to be selected, but I don't see it change in the interface. Maybe this is due to the localization preferences in the browser.

diff --git a/config/sendportal-host.php b/config/sendportal-host.php
index df3442b..16733b5 100644
--- a/config/sendportal-host.php
+++ b/config/sendportal-host.php
@@ -12,7 +12,8 @@ return [
     */
     'locale' => [
         'supported' => [
-            'en' => ['name' => 'English', 'native' => 'English']
+            'en' => ['name' => 'English', 'native' => 'English'],
+            'nl' => ['name' => 'Dutch', 'native' => 'Nederlands']
         ]
     ],

skinkie avatar Aug 30 '21 13:08 skinkie

I can not find how to enable my language translation in version 2.0.4 too.

krysits avatar Feb 06 '22 18:02 krysits

Please see https://laravel.com/docs/10.x/localization#configuring-the-locale

JonoB avatar Mar 05 '23 20:03 JonoB

@JonoB these kind of comments really don't help.

skinkie avatar Mar 05 '23 21:03 skinkie