React i18next (Complete Tutorial)

  Рет қаралды 29,882

Cosden Solutions

Cosden Solutions

Күн бұрын

Пікірлер: 78
@i.hate.artists
@i.hate.artists 7 ай бұрын
Brother, do you understand that you are the GOAT of React tutorials?
@11-45-pm
@11-45-pm 3 ай бұрын
We do
@АлександрПрошанов
@АлександрПрошанов 4 ай бұрын
Thank you for helping us to get into new instruments without having to waddle through infinite docs. Immense gratitude from the whole react-junior community
@dominikrodler8010
@dominikrodler8010 7 ай бұрын
Very nice introduction! A few additional things that might be interesting to new users: 1) You can keep basic HTML nodes (e.g. ) instead of those numbers () in your translation strings. 2) ESLint plugin eslint-plugin-i18next helps you find untranslated texts in your code. 3) i18next-scanner can automatically extract all translated texts and collect them in translation files (e.g. /en/frontend.json, /de/frontend.json). The same thing could be done with the "saveMissing" config option it seems, but I haven't tried that myself yet.
@devByDash
@devByDash Ай бұрын
Please ecxplain 3rd one, what ?
@tomeski1072
@tomeski1072 4 ай бұрын
Don't forget, that my bro is fluent in French, and he's very proud of it!
@namesare4fools
@namesare4fools 4 ай бұрын
best tutorial for useful libraries that most people didnt cover. you earn my sub!
@haribo_player-too5141
@haribo_player-too5141 6 ай бұрын
Ok this is one more sub in the bank. I’ve been watching few of your tutorials here and there and you never miss, always go smoothly. Trans component was starting to give me headache, thank you for this
@BrantK147
@BrantK147 6 ай бұрын
Oh wow, this is awesome! I used to be a translator and now I'm a software developer. I'm REALLY interested in internationalizing and translating web apps.
@leroviten
@leroviten 7 ай бұрын
Trans component is much easier to deal with using built-in 'components' property. No headache at all. As an idea of improvement as in a real project - load translations async from db. So neat. Thanks for your time and gr8 tut, man
@DanielKEMBEU
@DanielKEMBEU 29 күн бұрын
I natively speak french. I liked the way you tried it ! 🔥🔥 Your tutorials are awesome !!!!
@ElNicopewpew
@ElNicopewpew 7 ай бұрын
Great stuff as usual. Since hardly any websites are hardcoded these days, it would be killer to see this implemented with a cms such as sanity!
@orangvaik
@orangvaik 7 ай бұрын
in this tutorial string data is static, what about string data which is dynamic like data from a database?
@rushikeshgandhmal
@rushikeshgandhmal 6 ай бұрын
Hey man, thanks a lot. Helped me a lot. You are always best at explaining concepts.
@ivan4486
@ivan4486 6 ай бұрын
I used it once, and it worked well with normal tags in locales, and without passing the whole string in addition to the key. It only supported simple tags like strong etc. But it worked.
@AndreiTornyai
@AndreiTornyai 4 ай бұрын
thank you good summary of the capabilities of i18n
@jfr-001
@jfr-001 6 ай бұрын
Bon tutoriel, il y a tout ce qu'il faut
@cosdensolutions
@cosdensolutions 6 ай бұрын
content de l'entendre!
@ahmadshoja-s7y
@ahmadshoja-s7y Ай бұрын
به به ، چه این نیز بگذرد ، بزرگی ❤
@toniwincent6653
@toniwincent6653 4 ай бұрын
Amazing tutorial. Thank you!
@katerynamordovtseva1191
@katerynamordovtseva1191 3 ай бұрын
For Ru,Urk and other slovenian languages, this words have more declinations, so use: welcomeMessage_one, welcomeMessage_few, welcomeMessage_many, otherwise it may not work) Also, we do translate names, for us there is a difference in Latin and Cyrillic)
@giandenorte
@giandenorte 7 ай бұрын
nice info! I also like the quality of the video. I am wondering what camera do you use? Is it green screen or just black curtain?
@VersionSix-su2dp
@VersionSix-su2dp 4 ай бұрын
How it good of the you already specific the data on which language is in convert what is that , example Welcom - helo I am developer. To - you also write his translate value so what he do. I want something like if I give the value translation and give it the language it automatically converts to the languages not specified the convert language value
@subhamchakraborty152
@subhamchakraborty152 7 ай бұрын
Excited to learn something new 😁
@sylum3
@sylum3 6 ай бұрын
Regarding a change in keys that can break the UI - if your component and its helpers are padded with tests, then the commit that has these breaking changes should fail at some level, depending on the setup you have. For example a pre-commit script that runs all *.test files, a github action that blocks the PR if any test fails, etc.
@turgunov28
@turgunov28 7 ай бұрын
thanks bro for amazing contents ✊🏻
@izaias469
@izaias469 7 ай бұрын
you can use the trans component like this with html tags or components with variables and html tags or components
@nogafouz2174
@nogafouz2174 3 ай бұрын
thanks best tutorial👍
@kale_bhai
@kale_bhai 7 ай бұрын
So I need to create translation for every key on bunch of different languages.?
@NabilAlSayed01
@NabilAlSayed01 7 ай бұрын
Yup
@bastiendufour3841
@bastiendufour3841 7 ай бұрын
I am fluent in French too ! Awesome
@beninip
@beninip 7 ай бұрын
Great video! My question is, should I use the useTranslation hook the same way using typescript?
@dominikrodler8010
@dominikrodler8010 7 ай бұрын
yes
@mnhtada12
@mnhtada12 7 ай бұрын
Thank you so much for this video
@alexismarin905
@alexismarin905 3 ай бұрын
Would chatgpt help you set everyhting and you just double check?
@dmnd2806
@dmnd2806 6 ай бұрын
Your vids are really great keep it up
@HermanosCode
@HermanosCode 3 ай бұрын
Bro showed almost nothing. Why in the world it's called complete tutorial? You haven't showed us how to change language, where to store it value how to get translation from API. like bro this video should be called "React i18next (Getting started)
@JuanPabloGomez-cc6vm
@JuanPabloGomez-cc6vm 7 ай бұрын
is this the same for a next js project?
@Kimi-xp2th
@Kimi-xp2th 4 ай бұрын
So is this like Google translate? How accurate are the translations?
@cosdensolutions
@cosdensolutions 4 ай бұрын
oh no, you add your own translations. So it's as accurate as your translator/yourself!
@Kimi-xp2th
@Kimi-xp2th 4 ай бұрын
@cosdensolutions my bad. I commented before watching the vid. Lol. I'll try using this in my next project because with my previous one I used a custom made object for multiple languages and when I switched languages in the app it worked on my local host but after deploying the website on netlify apparently the switch doesn't work for some reason.
@devByDash
@devByDash Ай бұрын
Dyam, this is so good.
@MehdiDeveloper
@MehdiDeveloper 6 ай бұрын
I noticed your tattoo - is it Farsi? It made me curious if you're Iranian. :))
@CLeovison
@CLeovison 7 ай бұрын
Hi cosden i hope you make a tutorial on how to use react helmet async. Been watching your tutorial about react. Thank you so much for bringing a good quality video
@codeaz5673
@codeaz5673 3 ай бұрын
thank u sir. But you haven't show how to change lang dynamically
@Edgars82
@Edgars82 7 ай бұрын
No need to create workarounds creating constants or whatever... It's possible to set up i18next so it gets translations types from translation files with a little configurations.
@kaluczadzsi
@kaluczadzsi 7 ай бұрын
I would like to get More TS + React projects from scratch with tailwind or MUI
@hadeklte5312
@hadeklte5312 7 ай бұрын
I wonder How will it be for the data fetched from database like blog posts? It is a lots of work manually.
@mindblower113
@mindblower113 18 күн бұрын
You forgot adding a change button 😢
@qitpess2660
@qitpess2660 7 ай бұрын
Good video. Regarding the library. This i18n is SO WRONG in the first place. The thing is that I should do so much manual work and the mistake possibility is so high. This is so frustrating. As a developer, I want to have a running service within the project that will generate those JSONs without me. For me, it would be convenient to write full text in English inside t("Hello world!") and for all supported languages it will be like { fr: { "Hello world!": null } } With the highlighting when the text in the component is changing. But no one seems to move in that direction.
@dominikrodler8010
@dominikrodler8010 7 ай бұрын
You can. Set the createMissing config option or use i18next-scanner to extract and collect translations.
@qitpess2660
@qitpess2660 6 ай бұрын
@@dominikrodler8010 Oh. Ok. Thank you very much :)
@clementinaodinakachukwu1756
@clementinaodinakachukwu1756 4 ай бұрын
Welldone bro. You're God's sent. I tried clicking that link for the project react, seems its broken. It keeps saying cosden refused to connect.
@okanbayulgen
@okanbayulgen 7 ай бұрын
What if we want to change URL name. Thats not everything…
@amithm4010
@amithm4010 3 ай бұрын
how to use this outside the component?????????????
@cosdensolutions
@cosdensolutions 3 ай бұрын
Import i18n directly and do i18n.t()
@huzaifakhalil176
@huzaifakhalil176 3 ай бұрын
Amazing Video
@tszhong0411
@tszhong0411 7 ай бұрын
What about SEO?
@drrandom1259
@drrandom1259 7 ай бұрын
What if we want to separate different page translations too? Like I need an en.json for my home page and my settings page separatelly because there are tons of words in each page. Can I do nested objects inside my json file like en.json { "homePage":{ "welcomeText": "Hello!", }, "settingsPage":{ "title":"Settings page" } } And use it like this: { t("homePage.welcomeText") }??
@cosdensolutions
@cosdensolutions 7 ай бұрын
Yeah! Check the docs there are also other ways to organize
@drrandom1259
@drrandom1259 7 ай бұрын
@@cosdensolutions thanks! Will do
@ravisankarp61
@ravisankarp61 7 ай бұрын
Thank You.
@serdotsenko
@serdotsenko 6 ай бұрын
Thank you Bro! very useful, but do time-codes pls for the future video
@DemanaJaire
@DemanaJaire 7 ай бұрын
Out of curiosity, what's your native language?
@cosdensolutions
@cosdensolutions 7 ай бұрын
Romanian
@DemanaJaire
@DemanaJaire 7 ай бұрын
@@cosdensolutions I would have never guessed! Your English sounds so good. I once had a project manager from Romania (Andrei), and you sound nothing like him. 😅
@mmohamedfariz7814
@mmohamedfariz7814 7 ай бұрын
Your Video are Good. need a video for testing in react
@asandratrynyavojohanesa462
@asandratrynyavojohanesa462 7 ай бұрын
Excellente vidéo mon ami
@Andy-bz9cb
@Andy-bz9cb 3 ай бұрын
awesome!
@WarunaKulathunga
@WarunaKulathunga 2 күн бұрын
😍
@hamzamalik9735
@hamzamalik9735 7 ай бұрын
@davronmaxmudov3972
@davronmaxmudov3972 7 ай бұрын
CFBR
@satishbirhade8369
@satishbirhade8369 12 күн бұрын
Can you please create complete react course in 2025
@samiluludag5451
@samiluludag5451 7 ай бұрын
Dude, you should read the documentation better. Use Trans with components prop.
@МишаКолоденец
@МишаКолоденец 2 ай бұрын
This is awesome! Thanks a lot!
@MrSeredan
@MrSeredan 6 ай бұрын
React Testing with Playwright (Complete Tutorial)
32:45
Cosden Solutions
Рет қаралды 21 М.
React.js Refactoring From Junior To Senior
22:01
theSeniorDev
Рет қаралды 2,1 М.
УЛИЧНЫЕ МУЗЫКАНТЫ В СОЧИ 🤘🏻
0:33
РОК ЗАВОД
Рет қаралды 7 МЛН
Air Sigma Girl #sigma
0:32
Jin and Hattie
Рет қаралды 45 МЛН
КОНЦЕРТЫ:  2 сезон | 1 выпуск | Камызяки
46:36
ТНТ Смотри еще!
Рет қаралды 3,7 МЛН
Why Everyone Loves Zustand
29:27
Theo - t3․gg
Рет қаралды 118 М.
The Most Important Design Pattern in React
35:04
Cosden Solutions
Рет қаралды 121 М.
Multilanguage with react-i18next / React-i18next ile çoklu dil desteği
1:02:54
The Complete Guide to Modern React in 2025
33:52
Cosden Solutions
Рет қаралды 10 М.
I built a REAL Desktop App with both Tauri and Electron
12:22
Bufferhead
Рет қаралды 101 М.
The basics - Internationalization with Next.js in 2024 (app router)
25:26
Rendr - Crafting Web Platforms
Рет қаралды 7 М.
React Router - Complete Tutorial
23:53
Cosden Solutions
Рет қаралды 158 М.