---
title: "How do I ask Claude to translate UI text without changing placeholders?"  
description: "How do I ask Claude to translate UI text without changing placeholders?"  
author: "Björn Ólafsson"  
published: 2026-10-18  
updated: 2026-10-18  
canonical: https://www.mindstick.com/forum/162582/how-do-i-ask-claude-to-translate-ui-text-without-changing-placeholders  
category: "Software Localization"  
tags: ["Claude", "Localization", "Internationalization"]  
reading_time: 1 minute  

---

# How do I ask Claude to translate UI text without changing placeholders?

I'm using Claude to draft translations for a small web app. Some strings contain placeholders such as `{userName}` and `{remainingDays}`, and a few use ICU plural syntax. The surrounding words need translation, but the application still needs to parse the result.

There are also short button labels with character limits. I'd rather have Claude flag a translation that won't fit than quietly remove part of its meaning.

Is it better to provide the strings as a resource file, or separate each entry into its key, text, context, and length limit? What instructions have worked for **preserving translation placeholders**, especially when the target language needs a different word order or different plural categories?

We will still have a fluent speaker review the wording. I'm mainly looking for a practical way to validate **ICU message syntax** and catch broken variables before that review.


---

Original Source: https://www.mindstick.com/forum/162582/how-do-i-ask-claude-to-translate-ui-text-without-changing-placeholders

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
