<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sarah Navin</title>
    <description>The latest articles on DEV Community by Sarah Navin (@sarah-navin).</description>
    <link>https://dev.to/sarah-navin</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3646964%2F5e1a6ea4-da72-4d30-be1b-f0642478ca82.png</url>
      <title>DEV Community: Sarah Navin</title>
      <link>https://dev.to/sarah-navin</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sarah-navin"/>
    <language>en</language>
    <item>
      <title>Best Practices for Modern Persian Web Development: A Practical Guide</title>
      <dc:creator>Sarah Navin</dc:creator>
      <pubDate>Thu, 04 Dec 2025 19:38:29 +0000</pubDate>
      <link>https://dev.to/sarah-navin/best-practices-for-modern-persian-web-development-a-practical-guide-ci6</link>
      <guid>https://dev.to/sarah-navin/best-practices-for-modern-persian-web-development-a-practical-guide-ci6</guid>
      <description>&lt;p&gt;Persian-language websites have grown far beyond simple blogs and news portals. Today, Persian web development powers marketplaces, fintech products, SaaS dashboards, governmental portals, and high-traffic e-commerce sites. Yet building a truly reliable and user-friendly Persian web experience requires a unique set of considerations that many international developers are unfamiliar with.&lt;/p&gt;

&lt;p&gt;If you’re planning to build or improve a Persian-language product, this guide covers the best, field-tested practices—from typography and RTL layout to performance, UX, and cultural nuances.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Prioritize True RTL Support (Not Just “direction: rtl;”)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Developers often underestimate how much breaks when switching a UI from LTR to RTL:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Icons need mirroring (arrows, chevrons, sidebars)&lt;/li&gt;
&lt;li&gt;Flexbox and grid alignments behave differently&lt;/li&gt;
&lt;li&gt;Input fields with mixed content (English + Persian) require careful handling&lt;/li&gt;
&lt;li&gt;Code editors and markdown areas need logical-direction support&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Best practice
&lt;/h3&gt;

&lt;p&gt;Use frameworks with native RTL support (e.g., Tailwind with RTL plugin, MUI RTL, Bootstrap RTL).&lt;br&gt;
Don’t manually hack RTL with dozens of CSS overrides.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Use High-Quality Persian Typography&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Typography is a huge part of user trust in Persian interfaces. Poor default fonts can make your site look outdated instantly.&lt;/p&gt;

&lt;p&gt;Preferred options include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Vazirmatn (modern, open-source, variable font)&lt;/li&gt;
&lt;li&gt;IRANSans / IRANYekan (widely used in corporate and fintech apps)&lt;/li&gt;
&lt;li&gt;Estedad (great for UI elements and dashboards)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Best practice:
&lt;/h3&gt;

&lt;p&gt;Choose a variable font (like Vazirmatn) to reduce file sizes across all weights.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Implement the Jalali (Shamsi) Calendar Correctly&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Dates are essential in Persian UX.&lt;br&gt;
Users expect:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Jalali dates everywhere&lt;/li&gt;
&lt;li&gt;Consistent formatting (e.g., 1403/12/07 or ۷ اسفند ۱۴۰۳)&lt;/li&gt;
&lt;li&gt;Localization of weekdays and months&lt;/li&gt;
&lt;li&gt;Proper date arithmetic (e.g., leap year handling)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Best practice:
&lt;/h3&gt;

&lt;p&gt;Use well-maintained libraries for Jalali conversion rather than hand-rolled functions.&lt;br&gt;
Also ensure your backend supports Jalali input if your users expect it (common in marketplaces, banking portals, HR dashboards, etc.).&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Choose Proper Persian Number Formatting&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Persian websites should use:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Persian digits (۱۲۳۴۵) in UI text&lt;/li&gt;
&lt;li&gt;English digits in technical areas (URLs, tracking codes, API keys)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Best practice:
&lt;/h3&gt;

&lt;p&gt;Adopt a unified approach:&lt;br&gt;
Persian digits for UX → English digits for machine context.&lt;/p&gt;

</description>
      <category>persian</category>
      <category>webdev</category>
      <category>shamsi</category>
    </item>
  </channel>
</rss>
