Laravel: Single to Multi-Language - Practical Demo

  Рет қаралды 40,599

Laravel Daily

Laravel Daily

Күн бұрын

Пікірлер: 29
@afulay-hy2oy
@afulay-hy2oy 10 ай бұрын
Localisation with Laravel + Inertia.js = Vue is something I would like to learn from you. Nearly no serious resources about this. Thank you
@neerajsinghtangariya2587
@neerajsinghtangariya2587 3 жыл бұрын
That's it what i need to implement. Thank you sir.
@holyhd7505
@holyhd7505 2 жыл бұрын
i need multi language system with loading first for big project which package or how to make for this
@nabeelyousafpasha
@nabeelyousafpasha 4 жыл бұрын
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 4 жыл бұрын
Thank you Povilas. Great tip.
@carlmenger4964
@carlmenger4964 3 жыл бұрын
yeah but he doesn't know what a sentence is. He just runs on without a break, it's confusing as hell.
@learningtutorial3960
@learningtutorial3960 2 жыл бұрын
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 2 жыл бұрын
Good tutorial
@nurharizulaimanmatharith4023
@nurharizulaimanmatharith4023 3 жыл бұрын
This is what im looking for
@7sujit12
@7sujit12 4 жыл бұрын
What about amount field ? I have seen people entered amount in thier own language.
@MikailAziev
@MikailAziev 4 жыл бұрын
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.
@PovilasKorop
@PovilasKorop 4 жыл бұрын
Good question. In my opinion, json file is about TRANSLATION but not about FORMATTING of it. So I would vote for storing in one case (whatever you choose) and then use helpers whenever you have to. Remember, json file formatting is convenient for non-technical people, so there's a chance that people would translate without even knowing whether it will be in uppercase or lowercase in the website, they will look just at json file.
@Lusikable
@Lusikable 4 жыл бұрын
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
@mulualemabate3193
@mulualemabate3193 2 жыл бұрын
thanks sir
@Mardiantopersonal
@Mardiantopersonal 4 жыл бұрын
Nice tutorial and explain good job
@ivan.silicin
@ivan.silicin 3 жыл бұрын
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?
@LaravelDaily
@LaravelDaily 3 жыл бұрын
Because in your case you don't have the flexibility to adding unlimited amount of languages, without changing the database structure.
@maryte9801
@maryte9801 3 жыл бұрын
Thank you
@MrTarwinder
@MrTarwinder 4 жыл бұрын
Hello laravel business, please can you tell me which software you are using for your video and screen recording...
@PovilasKorop
@PovilasKorop 4 жыл бұрын
Camtasia for Mac.
@nurawadahismail02
@nurawadahismail02 4 жыл бұрын
@@PovilasKorop I love to use ShareX for windows
@majdibrahem1399
@majdibrahem1399 2 жыл бұрын
thanks bro
@papalevies
@papalevies 4 жыл бұрын
What about translated URL slugs?
@PovilasKorop
@PovilasKorop 4 жыл бұрын
You add those as translatable fields in that package I mentioned. Of course, they won't be translated automatically for all languages, you need to do it manually. Maybe this video will help: kzbin.info/www/bejne/jqm3n6h8mLSmaqs
@JamesAutoDude
@JamesAutoDude 3 ай бұрын
Its too bad they don't have some kinda automatic method where you don't have to manually type each thing and each translation
@abdmaster
@abdmaster 4 жыл бұрын
what to do if clients need RTL language support?
@PovilasKorop
@PovilasKorop 4 жыл бұрын
I haven't worked with RTL projects, so unfortunately can't comment on this.
@razisayyed
@razisayyed 4 жыл бұрын
RTL languages needs extra work on frontend. Usually u use some postcss plugins with webpack to achieve this like rtlcss.
Laravel Gates. Реализация логики проверки прав.
35:34
Lectoria. Обучение веб-разработке.
Рет қаралды 10 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 481 М.
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 1,1 МЛН
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 1,4 МЛН
РОДИТЕЛИ НА ШКОЛЬНОМ ПРАЗДНИКЕ
01:00
SIDELNIKOVVV
Рет қаралды 3,9 МЛН
Every parent is like this ❤️💚💚💜💙
00:10
Like Asiya
Рет қаралды 26 МЛН
Laravel Translations: Store in PHP or JSON Files?
7:34
Laravel Daily
Рет қаралды 20 М.
Laravel Language Switcher
27:58
Andre Madarang
Рет қаралды 87 М.
The Tools I Use to Build Products in Laravel
19:00
Josh Cirre
Рет қаралды 33 М.
Translations in Laravel and InertiaJS applications
12:49
Trello на laravel + livewire без js за 10 минут!
27:36
Просто о Laravel. CutCode
Рет қаралды 8 М.
What’s Up with Laravel? It’s Everywhere, and Here’s Why!
6:22
From Laravel Blade to Vue.js + API [Live-coding Example]
22:28
Laravel Daily
Рет қаралды 168 М.
Junior Code Review: Laravel Routes, Middleware, Validation and more
19:57
Eloquent Observers or Events Listeners? Which is Better?
8:24
Laravel Daily
Рет қаралды 60 М.
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 1,1 МЛН