π No Dutch language
Hi,
There is no Dutch language available. I would like to translate Hi.Events to Dutch. How can i do that?
Hi @jtbmedia π
Thank you for the offer! That would be much appreciated. Below is the translations guide I have been working on.
I have also created a branch which has all the below steps already done. You can use this branch as a guide.
Many thanks!
Adding a new language
Frontend
Update ./frontend/lingui.config.js
Update the locales array in lingui.config.js to include the languages you want to support.
Run yarn extract to extract the messages from the source code.
yarn messages:extract
Update ./frontend/src/locales.ts
Update the following properties in ./frontend/src/locales.ts:
SupportedLocaleslocaleMessageslocaleToFlagEmojiMaplocaleToNameMap
Add translations to ./frontend/src/locales/[locale].po
Add translations to the .po file for the new language.
You can use a PO file editor like Poedit to edit the .po file. Or an online editor like Po File Editor.
Run yarn compile to compile the translations.
yarn messages:compile
Backend
Update .backend/app/Locale.php
Add the new language the Locale Enum in ./backend/app/Enums/Locale.php.
Create a [locale].json file in ./backend/lang
Create a [locale].json file in ./backend/lang for the new language.
Add an empty JSON object to the file.
{}
Extract the translations
Run the following command to extract the translations from the source code:
php artisan langscanner [locale]
Update the translations
Update the translations in the [locale].json file.
Compile the translations
There is no need to compile the translations in the backend.
Hi,
Thatβs to complicated for me. Can you send me the English.po file? I will translate it for you.
Hi @jtbmediahttps://github.com/jtbmedia π
Thank you for the offer! That would be much appreciated. Below is the translations guide I have been working on.
I have also created a branchhttps://github.com/HiEventsDev/Hi.Events/commit/eb1934ec71c91e572d594613b1006885584ba8b4 which has all the below steps already done. You can use this branch as a guide.
Many thanks!
Adding a new language Frontend Update ./frontend/lingui.config.js
Update the locales array in lingui.config.js to include the languages you want to support.
Run yarn extract to extract the messages from the source code.
yarn messages:extract
Update ./frontend/src/locales.ts
Update the following properties in ./frontend/src/locales.ts:
- SupportedLocales
- localeMessages
- localeToFlagEmojiMap
- localeToNameMap
Add translations to ./frontend/src/locales/[locale].po
Add translations to the .po file for the new language.
You can use a PO file editor like Poedithttps://poedit.net/ to edit the .po file. Or an online editor like Po File Editorhttps://pofile.net/free-po-editor.
Run yarn compile to compile the translations.
yarn messages:compile
Backend Update .backend/app/Locale.php
Add the new language the Locale Enum in ./backend/app/Enums/Locale.php.
Create a [locale].json file in ./backend/lang
Create a [locale].json file in ./backend/lang for the new language.
Add an empty JSON object to the file.
{}
Extract the translations
Run the following command to extract the translations from the source code:
php artisan langscanner [locale]
Update the translations
Update the translations in the [locale].json file.
Compile the translations
There is no need to compile the translations in the backend.
Hi
I have translated the frontend po file to dutch. Can i send it to you?
Awesome, thank you! Appreciate the effort. You can post it here or send it to [email protected].
Hi
I've emailed the file to you.
Hi @daveearley ,
Can you include the NL language also by default so i don't need to translate again?
Is the local automatically taken from the users system settings or how is this determend?
@jtbmedia do you perhaps can share the NL locale with me also?
Hi Dieter,
Please send me and e-mail.
Met vriendelijke groet,
Jeroen ten Brink jtb-media.nl [logo jtb-media] Westerweiden 29 7961 EA Ruinerwold
@.?anonymous&ep=bwmEmailSignature> Maak een afspraak @.?anonymous&ep=bwmEmailSignature> met mij!
Van: Dieter Gijsen @.> Verzonden: vrijdag 4 april 2025 14:07 Aan: HiEventsDev/Hi.Events @.> CC: jtb-media.nl @.>; Mention @.> Onderwerp: Re: [HiEventsDev/Hi.Events] π No Dutch language (Issue #205)
@jtbmediahttps://github.com/jtbmedia do you perhaps can share the NL locale with me also?
β Reply to this email directly, view it on GitHubhttps://github.com/HiEventsDev/Hi.Events/issues/205#issuecomment-2778500368, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJZ5UAMZYRVDHPNS3B7V4YT2XZYXHAVCNFSM6AAAAABOAPYCM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONZYGUYDAMZWHA. You are receiving this because you were mentioned.Message ID: @.***> [Afbeelding verwijderd door afzender. Gijsen]Gijsen left a comment (HiEventsDev/Hi.Events#205)https://github.com/HiEventsDev/Hi.Events/issues/205#issuecomment-2778500368
@jtbmediahttps://github.com/jtbmedia do you perhaps can share the NL locale with me also?
β Reply to this email directly, view it on GitHubhttps://github.com/HiEventsDev/Hi.Events/issues/205#issuecomment-2778500368, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJZ5UAMZYRVDHPNS3B7V4YT2XZYXHAVCNFSM6AAAAABOAPYCM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONZYGUYDAMZWHA. You are receiving this because you were mentioned.Message ID: @.***>
Closing, as Dutch as added in https://github.com/HiEventsDev/Hi.Events/pull/491