Closed elgibor-solution closed 2 years ago
Yes, this is possible by using for example this setting for english and dutch in the settings table:
Next the pagebuilder will show a language selector to fill the page for each of the languages.
@HansSchouten
Is that just working for en,nl ? i try to set as id,ko but got error below
build:494 Uncaught TypeError: o.a.registerLanguage is not a function at Module.<anonymous> (build:494) at n (build:463) at t.value (build:494) at t.value (build:494) at build:499
Also can advice how to load specific locale from "page_translations" table from frontend?
You should be able to configure any language you like. Is it working if you try with just en,nl? That might indicate there is another issue.
For example on a basic website https://www.gambiabirdingtours.com I use the following records in page_translations:
Next the resolver of the pagebuilder would load the right language based on the URL.
@HansSchouten Yes, its working fine if i set it as en,nl. I use your laravel phppagebuilder package, any config that i need to set?
Its mean resolver of the pagebuilder would load the right language based on the URL and ignore the locale column?
I manage to make it work, below are the steps to add new languages:
'languages' => [ 'en' => 'English', 'nl' => 'Dutch', 'es' => 'Spanish', 'fr' => 'French', 'de' => 'German', 'id' => 'Bahasa', 'ko' => 'Korea' ]
INSERT INTO
settingsSET
id= '1',
setting= 'languages',
value= 'id,ko',
is_array= '1',
created_at= NOW(),
updated_at= NULL
@HansSchouten Thanks a lot for your advice
Hi,
Is that possible to set the text content into multi language? I check got page_translations table but not sure how to use it.
i try to add languages under settings table, but the page cannot load.