<?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: Sardar Dilshad</title>
    <description>The latest articles on DEV Community by Sardar Dilshad (@serdar_duski).</description>
    <link>https://dev.to/serdar_duski</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%2F3971489%2F703bd4f3-caee-4620-a351-b1ff4915c50e.png</url>
      <title>DEV Community: Sardar Dilshad</title>
      <link>https://dev.to/serdar_duski</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/serdar_duski"/>
    <language>en</language>
    <item>
      <title>Building a trilingual, multi-tenant hotel management SaaS for the Kurdistan Region</title>
      <dc:creator>Sardar Dilshad</dc:creator>
      <pubDate>Sat, 06 Jun 2026 16:13:17 +0000</pubDate>
      <link>https://dev.to/serdar_duski/building-a-trilingual-multi-tenant-hotel-management-saas-for-the-kurdistan-region-3hm0</link>
      <guid>https://dev.to/serdar_duski/building-a-trilingual-multi-tenant-hotel-management-saas-for-the-kurdistan-region-3hm0</guid>
      <description>&lt;p&gt;A few months ago I shipped &lt;a href="https://tourism.krd" rel="noopener noreferrer"&gt;tourism.krd&lt;/a&gt; — first-party hotel and motel management software built specifically for property owners in the Kurdistan Region: Duhok, Erbil, Slemani and Zakho. This post is about the engineering decisions behind it, and why building for a local, underserved, right-to-left, multilingual market turned out to be a genuinely interesting problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Most small hotels and motels in the region still run on paper ledgers or scattered WhatsApp chats. The result is predictable: double-bookings, lost income records, and no clear view of occupancy or revenue. The few digital options that exist are global OTA platforms that take a commission on every booking and assume English-only, left-to-right staff. Nobody had built management software that speaks the local languages and leaves every booking — and every dinar — with the owner.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why multi-tenant, subdomain per property
&lt;/h2&gt;

&lt;p&gt;Every property runs on its own subdomain — &lt;code&gt;yourmotel.tourism.krd&lt;/code&gt; — with its data fully isolated. I went with a single database and row-level multi-tenancy rather than a database per tenant: every row carries a &lt;code&gt;tenant_id&lt;/code&gt;, and a host-to-tenant lookup in middleware resolves the subdomain to that ID on each request.&lt;/p&gt;

&lt;p&gt;Postgres Row Level Security is the backbone. Reads and writes are scoped by a &lt;code&gt;current_tenant_id()&lt;/code&gt; function so a query can never leak across tenants, even if application code has a bug:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="n"&gt;policy&lt;/span&gt; &lt;span class="n"&gt;tenant_isolation&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;bookings&lt;/span&gt;
  &lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tenant_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current_tenant_id&lt;/span&gt;&lt;span class="p"&gt;());&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The trilingual / RTL challenge
&lt;/h2&gt;

&lt;p&gt;The admin works fully in English, Arabic and Kurdish (Bahdini, written in Arabic script), with correct right-to-left mirroring. The hard part isn't translation — it's that every piece of content is multilingual. Room names, taglines, landing-page copy: each is stored as a small object rather than a single string.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nx"&gt;Localized&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;en&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nl"&gt;ar&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nl"&gt;ku&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;string&lt;/span&gt; &lt;span class="p"&gt;};&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Layout direction flips based on locale, and the whole UI mirrors so Arabic and Kurdish read naturally. Getting RTL right across a real dashboard — calendars, tables, forms — is far more work than wrapping things in &lt;code&gt;dir="rtl"&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Next.js (App Router, React Server Components)&lt;/strong&gt; for the admin and the public site&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Supabase&lt;/strong&gt; — Auth, Postgres, Storage, and RLS — accessed SSR&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tailwind&lt;/strong&gt; for styling, with a dedicated palette per surface&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cloudflare Workers&lt;/strong&gt; for deployment, so it's fast and cheap to run regionally&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;p&gt;Building for an underserved local market is its own kind of constraint. There's no off-the-shelf component library tuned for Bahdini RTL, no Stripe support for local payment rails, and the users aren't developers — so the bar for "obvious and calm" UI is high. Those constraints made the product sharper, not weaker.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;If you run a hotel or motel in the Kurdistan Region, it's live and first-party at &lt;strong&gt;&lt;a href="https://tourism.krd" rel="noopener noreferrer"&gt;tourism.krd&lt;/a&gt;&lt;/strong&gt; — 0% commission, trilingual, your software. Feedback from other builders very welcome.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>nextjs</category>
      <category>supabase</category>
      <category>saas</category>
    </item>
  </channel>
</rss>
