SShortSingh.
Back to feed

How Tarotas serves 78 tarot cards in 5 languages from one React codebase

0
·1 views

Inithouse built Tarotas, a tarot card reflection app, using a single React and Vite codebase that serves content in Czech, Slovak, English, German, and Polish. The app covers 78 cards across five languages, generating 390 card detail pages and 124 unique URLs, each cross-linked with hreflang alternates. The team chose English-only card slugs across all language routes to reduce routing complexity and simplify cross-language linking. An early attempt at auto-redirecting users based on browser language was abandoned after negative feedback, with the URL itself becoming the sole source of truth for language selection. Both the hreflang head tags and the XML sitemap are generated from the same route configuration to ensure bidirectional alternate links stay consistent.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

How One Word — 'Trade-off' — Defined a Computer Engineer's Entire Career

A computer engineering student in South Korea was introduced to the concept of 'trade-off' by Professor Sang Lyul Min during an introductory course that also served as his first exposure to C programming. With limited internet access at the time, the student had to look the term up in a Korean-English dictionary, gradually grasping its deeper meaning. The word came to encapsulate a core principle: that every engineering decision involves a compromise, distinguishing the discipline from pure science or mathematics. As the author progressed through his career — from algorithms courses weighing time against space complexity to reading academic papers — the concept of trade-off resurfaced repeatedly. Decades later, he considers it the single most defining word in engineering, one he was effectively handed for life on his first day of college.

0
ProgrammingDEV Community ·

How Apex Code Can Automate Gladly Task Creation Directly from Salesforce

Developers can use Salesforce Apex to integrate with Gladly's task API, automatically creating customer-linked follow-up tasks when events like appointment rescheduling occur. Gladly tasks are customer-specific records that sit on a customer's timeline alongside conversations and emails, requiring both task details and customer identification in the API request. The integration uses a wrapper class pattern in Apex to manage the nested JSON request body, making the code easier to maintain as the integration evolves. Gladly's POST endpoint accepts fields such as assignee, task body, due date, and customer contact information to create or attach tasks to existing customer profiles. Building in error handling from the start is emphasized as critical, since skipping it often leads to complications during real production incidents.

0
ProgrammingDEV Community ·

Developer builds custom Django command to alter Milvus schemas without data loss

A developer at a company using Milvus as its vector database needed to modify collection schemas in production without losing existing customer data. At the time, Milvus lacked a native ALTER command, with the only official workaround being a manual data migration to a new collection. To streamline this process, the developer wrapped the migration logic into a reusable Django management command that any team member could run safely. The command accepts a database name, collection name, new schema definition, and batch size, then creates a temporary collection, copies data in batches, drops the old collection, and renames the temporary one. Field removals and additions with default values are handled automatically, though updating existing field values is not currently supported.

How Tarotas serves 78 tarot cards in 5 languages from one React codebase · ShortSingh