Hi.Events icon indicating copy to clipboard operation
Hi.Events copied to clipboard

🌟 No Dutch language

Open jtbmedia opened this issue 1 year ago β€’ 2 comments

Hi,

There is no Dutch language available. I would like to translate Hi.Events to Dutch. How can i do that?

jtbmedia avatar Sep 11 '24 09:09 jtbmedia

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:

  • 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 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.

daveearley avatar Sep 11 '24 14:09 daveearley

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.

jtbmedia avatar Sep 12 '24 07:09 jtbmedia

Hi

I have translated the frontend po file to dutch. Can i send it to you?

jtbmedia avatar Nov 07 '24 13:11 jtbmedia

Awesome, thank you! Appreciate the effort. You can post it here or send it to [email protected].

daveearley avatar Nov 08 '24 16:11 daveearley

Hi

I've emailed the file to you.

jtbmedia avatar Nov 08 '24 21:11 jtbmedia

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?

Gijsen avatar Apr 04 '25 09:04 Gijsen

@jtbmedia do you perhaps can share the NL locale with me also?

Gijsen avatar Apr 04 '25 12:04 Gijsen

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: @.***>

jtbmedia avatar Apr 04 '25 14:04 jtbmedia

Closing, as Dutch as added in https://github.com/HiEventsDev/Hi.Events/pull/491

daveearley avatar May 01 '25 04:05 daveearley