Laravel: Single to Multi-Language - Practical Demo

Laravel: Single to Multi-Language - Practical Demo

Laravel Daily

4 года назад

40,237 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@afulay-hy2oy
@afulay-hy2oy - 08.12.2023 17:01

Localisation with Laravel + Inertia.js = Vue is something I would like to learn from you.
Nearly no serious resources about this.
Thank you

Ответить
@learningtutorial3960
@learningtutorial3960 - 05.10.2022 10:05

Please help improve this article or section by expanding it. Ex: If locale us English saves the text as locale en but when we change locale to fr let it save as locale fr without having to create multiple language forms

Ответить
@learningtutorial3960
@learningtutorial3960 - 05.10.2022 09:57

Good tutorial

Ответить
@mulualemabate3193
@mulualemabate3193 - 22.03.2022 15:23

thanks sir

Ответить
@holyhd7505
@holyhd7505 - 02.12.2021 22:15

i need multi language system with loading first for big project which package or how to make for this

Ответить
@majdibrahem1399
@majdibrahem1399 - 16.11.2021 01:04

thanks bro

Ответить
@neerajsinghtangariya2587
@neerajsinghtangariya2587 - 11.08.2021 15:00

That's it what i need to implement. Thank you sir.

Ответить
@maryte9801
@maryte9801 - 17.03.2021 23:42

Thank you

Ответить
@ivan.silicin
@ivan.silicin - 04.03.2021 13:09

Thank you, but I have a question.
Why just not add fields in start table named like en_title, it_title, ru_title etc. and not complicate the project by adding other tables?

Ответить
@nurharizulaimanmatharith4023
@nurharizulaimanmatharith4023 - 17.02.2021 07:02

This is what im looking for

Ответить
@7sujit12
@7sujit12 - 02.10.2020 15:09

What about amount field ? I have seen people entered amount in thier own language.

Ответить
@papalevies
@papalevies - 02.06.2020 00:11

What about translated URL slugs?

Ответить
@MikailAziev
@MikailAziev - 29.03.2020 23:23

Thanks for the video.

Did anyone think about this: in which case will be better store keys in JSON language files. For example, we may need the string "Login" in both title case and lower case. Yes, we can store it in lower case and use helpers to convert it to title case when we need.

If we store different keys in dirrefent cases in looks messy. We will not remember how string is stored and we will need to check it many times.
If we store everything in same case it will make our code dirty with many many strings wrapped with helpers.

Ответить
@Lusikable
@Lusikable - 25.03.2020 14:08

Good tutorial, but project is very simple and one of sensitive topic was not touched - is a multilang article tags. I hope this theme will be appeared in the next videos

Ответить
@MrTarwinder
@MrTarwinder - 13.03.2020 05:36

Hello laravel business, please can you tell me which software you are using for your video and screen recording...

Ответить
@Mardiantopersonal
@Mardiantopersonal - 12.03.2020 19:43

Nice tutorial and explain good job

Ответить
@abdmaster
@abdmaster - 12.03.2020 17:50

what to do if clients need RTL language support?

Ответить
@nabeelyousafpasha
@nabeelyousafpasha - 12.03.2020 16:25

The approach i used was:
Created two tables
1) table named `translations` having attributes `locale`, `group`, `item`, `text`

2) table named `custom_translations` having attributes `fk_translation_id`, `text`

All the main array indexes are saved in group and inner indexes are in item. With en as locale and english text in text nullable column.

Then schedule a artisan console command to get en locale and text and using Google Translate Api translate it against other provided locales and save them in db translations table.

If a user need any other translation then he can modify locale text and it would be saved in Custom_translations.

This approach might help anybody.

Ответить
@bernardonigbinde
@bernardonigbinde - 12.03.2020 15:33

Thank you Povilas. Great tip.

Ответить