<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Prajwal T S on Medium]]></title>
        <description><![CDATA[Stories by Prajwal T S on Medium]]></description>
        <link>https://medium.com/@PrajwalTS?source=rss-4e518b35adcf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*JBCS8p08n7c4nb08eyRPFw.jpeg</url>
            <title>Stories by Prajwal T S on Medium</title>
            <link>https://medium.com/@PrajwalTS?source=rss-4e518b35adcf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 08:46:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@PrajwalTS/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Streamlining Localization in a Monorepo using i18n-js]]></title>
            <link>https://medium.com/tech-at-zet/streamlining-localization-in-a-monorepo-using-i18n-js-e7c521ff69d4?source=rss-4e518b35adcf------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7c521ff69d4</guid>
            <category><![CDATA[monorepo]]></category>
            <category><![CDATA[localization]]></category>
            <category><![CDATA[i18n]]></category>
            <dc:creator><![CDATA[Prajwal T S]]></dc:creator>
            <pubDate>Mon, 28 Aug 2023 08:45:38 GMT</pubDate>
            <atom:updated>2023-08-28T08:45:38.522Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In the world of app development, catering to various regions and languages is essential for reaching a global user base. This is where localization comes into play, allowing apps to adapt to different locales. One effective tool in the JavaScript realm for achieving this is <strong>i18n-js</strong>. In this article, we’ll delve into how to harness the power of i18n-js within a monorepo setup to facilitate localization across multiple apps.</p><h3>Getting Started with i18n-js</h3><p>To begin, it’s crucial to grasp the fundamentals of i18n-js. This library’s core component is the I18n class, which handles translations. The following code snippet demonstrates how to instantiate the I18n class with translation objects for two locales, English and Brazilian Portuguese.</p><pre>import { I18n } from &quot;i18n-js&quot;;<br><br>const i18n = new I18n({<br>  en: {<br>    hello: &quot;Hi!&quot;,<br>  },<br>  &quot;pt-BR&quot;: {<br>    hello: &quot;Olá!&quot;,<br>  },<br>});</pre><h3>Monorepo Challenges and Solution</h3><p>Monorepos are a common approach when developing multiple apps that share common packages. However, when dealing with localization in such a setup, challenges can arise regarding maintaining content specific to each package. To address this, consider creating a dedicated package for localization, named @localization, which will house a unified localization instance</p><pre>// Inside the @localization package<br>export const i18n = new I18n();</pre><p>Within each individual package, you can then add package-specific localization content. For example:</p><pre>import { i18n } from &#39;@localization&#39;;<br><br>const localizationObj = {<br>  en,<br>  &quot;pt-BR&quot;,<br>}<br>i18n.store(localizationObj);</pre><p>Here, en and pt-BR represent content tailored for the respective package&#39;s audience.</p><h3>Implementation Tips</h3><p>When integrating i18n-js into your monorepo, keep these implementation tips in mind:</p><ol><li><strong>Centralized Localization</strong>: By utilizing the @localization package to manage localization, you ensure a consistent approach across all packages.</li><li><strong>Package-Specific Content</strong>: The ability to store package-specific content within the @localization package simplifies content management and reduces duplication.</li><li><strong>Import Considerations</strong>: Remember to import the i18n instance from @localization instead of directly from i18n-js within your project.</li></ol><h3>Conclusion</h3><p>Localization is pivotal for making apps accessible and user-friendly across diverse linguistic backgrounds. With i18n-js and a well-structured monorepo setup, you can efficiently manage localization efforts for multiple apps. By creating a centralized localization package and utilizing package-specific content, you strike a balance between shared resources and customized localization, streamlining the development process and ensuring a consistent user experience.</p><p><em>Thank you for reading! We hope this article provides valuable insights into localization using i18n-js within a monorepo context. Feel free to share your thoughts and experiences in the comments below.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7c521ff69d4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tech-at-zet/streamlining-localization-in-a-monorepo-using-i18n-js-e7c521ff69d4">Streamlining Localization in a Monorepo using i18n-js</a> was originally published in <a href="https://medium.com/tech-at-zet">Tech at ZET</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Backend-driven dynamic forms in React/React-native: Part 1]]></title>
            <link>https://medium.com/tech-at-zet/backend-driven-dynamic-forms-in-react-react-native-part-1-2e3140e4f6c?source=rss-4e518b35adcf------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e3140e4f6c</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[forms]]></category>
            <category><![CDATA[dynamic-form]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[frontend]]></category>
            <dc:creator><![CDATA[Prajwal T S]]></dc:creator>
            <pubDate>Wed, 26 Jul 2023 12:21:02 GMT</pubDate>
            <atom:updated>2023-07-26T12:21:02.011Z</atom:updated>
            <content:encoded><![CDATA[<p>Forms are a critical aspect of user interaction on both web and app platforms. They serve as essential tools for collecting necessary information from users, ranging from simple text inputs to complex selections and date pickers. Form management encompasses various elements, including field types, UI configurations, and validations. Popular form management libraries such as react-hook-form and formik, along with validation libraries like zod and yup, provide developers with a multitude of options to handle these complexities effectively.</p><p><strong>The Frontend Dilemma</strong></p><p>Traditionally, frontend development has been the primary focus for form creation and maintenance. All field configurations and validations were developed and managed within the frontend codebase. While this approach is suitable for applications with a few static forms, it becomes cumbersome when dealing with a large number of constantly evolving forms, as seen in survey applications or platforms requiring dynamic user data collection.</p><p><strong>The Need for Backend-Driven Forms</strong></p><p>The demand for backend-driven forms arises when there is a necessity for a high volume of forms that require constant development and maintenance. For instance, consider a scenario where a platform needs to onboard multiple banks and create application forms for various financial products like credit cards and loans. Building and maintaining these forms solely on the frontend would be impractical and time-consuming.</p><p><strong>The Advantages of Backend-Driven Dynamic Forms</strong></p><p>While backend-driven forms may incur a higher initial setup cost, the long-term benefits outweigh this investment. Once the system is built, creating and modifying forms becomes a swift process with zero deployment required. Furthermore, a well-implemented backend-driven form system minimizes the need for developer intervention after the initial setup.</p><p><strong>Choosing the Right Technologies</strong></p><p>When implementing a backend-driven dynamic form solution, choosing the appropriate technologies is crucial. In our use case, we opted for the following:</p><ol><li><strong>React-Hook-Forms for Form Management</strong>: Among the available form management libraries, we chose react-hook-forms due to its lightweight nature and support for uncontrolled forms. This library streamlines form handling and makes it easier to integrate with backend-driven systems.</li><li><strong>AGV for Validations</strong>: For managing validations, we selected AGV, a library used to evaluate JSON schemas. JSON schemas provide a JSON serializable representation of validation rules, making them suitable for backend-driven systems. Moreover, AGV allows us to utilize the same validation schema in other programming languages, such as Java or Python, offering increased flexibility.</li><li><strong>JSON Schema over Yup and Zod</strong>: While yup and zod are popular validation libraries, we opted for JSON Schema due to its specification-based approach. JSON Schema&#39;s ability to serialize validation rules into JSON format aligns seamlessly with backend-driven systems, making it an ideal choice for our use case.</li></ol><p><strong>Conclusion</strong></p><p>Implementing backend-driven dynamic forms can significantly enhance form management capabilities for applications requiring a large number of constantly evolving forms. By leveraging technologies like react-hook-forms for efficient form management and AGV with JSON Schema for robust validations, developers can streamline the process of creating, modifying, and maintaining forms. The initial setup cost is offset by the long-term benefits of a rapid and flexible form management system that reduces developer intervention and ensures a seamless user experience. Whether it&#39;s onboarding banks or creating surveys, backend-driven dynamic forms prove to be a valuable asset for modern web and app platforms.</p><p><em>Stay tuned for Part 2, where we’ll delve into the implementation details. Keep an eye on this space!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e3140e4f6c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tech-at-zet/backend-driven-dynamic-forms-in-react-react-native-part-1-2e3140e4f6c">Backend-driven dynamic forms in React/React-native: Part 1</a> was originally published in <a href="https://medium.com/tech-at-zet">Tech at ZET</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>