The decision to adopt React/NextJS brought several benefits to our development process:
To cater to our global user base, we recognized the importance of providing multilingual support in our application. Implementing internationalization (i18n) was a crucial step in making our services accessible and user-friendly for people worldwide.
To achieve i18n functionality, our development team created a custom implementation tailored to the specific needs of our services at Gentlent. This custom i18n solution allows us to handle translations and support multiple languages seamlessly.
With our custom i18n solution, we started by enabling support for English (en) and German (de) languages in our application. We created separate translation files for each language, encapsulating all the text snippets used throughout the application.
Our custom i18n implementation provides a straightforward mechanism for loading language resources based on the user's preference. When a user selects a specific language, we dynamically load the corresponding translation file and make it available throughout the application.
To allow users to switch between languages seamlessly, we added a language switcher functionality to the user interface. When a user selects a different language, the application dynamically updates the content by fetching the corresponding translation file and refreshing the page with the new language. You will be able to find it at the bottom of most pages.
Our custom i18n implementation was designed with extensibility in mind, allowing us to add new languages as our user base expands. Adding a new language is a straightforward process that involves creating a new translation file for the desired language and integrating it into the application.
Stay tuned for the next part of our series, where we will delve into the exciting new features and re-designs that our team has been working on for v2.
If you have any questions or feedback, please don't hesitate to reach out to us. We appreciate your continued support as we strive to deliver the best possible experience for our users.
Founder & CEO
Gentlent UG (haftungsbeschränkt)