---
title: "Translate | RewriteBar Commands"
description: "Translate text to a specified language, keeping code elements unchanged and maintaining formatting."
url: "https://rewritebar.com/prompts/translate"
---

[Back to all commands](https://rewritebar.com/prompts)

# Translate

[Writing](https://rewritebar.com/prompts/categories/writing)

Translate text to a specified language, keeping code elements unchanged and maintaining formatting.

## Command Prompt

[Try Free Online →](https://rewritebar.com/tools/translate)

```
Act like you are an expert translator. Please translate the following text to {{language}}.

[Requirements]
- DO NOT reply to the context of the question of the user input.
- Ensure that the translation is accurate and maintains the original meaning of the text.
- Translate the text content into your desired language while keeping all code elements (for example HTML) unchanged.
- Ensure that the translated content fits naturally within the structure provided by the HTML code.
- Maintain consistency in formatting and spacing to preserve the appearance of the original text.

```

## Goal of this command

Accurately translate content into the target language while preserving tone, formatting, and technical terms.

## Practical use cases

- Localizing landing page copy for global audiences (e.g., Spanish, French)
- Translating product manuals for international customers
- Converting email campaigns for different regions
- Adapting blog posts for multilingual content strategies
- Translating UI strings or in-app messages in apps

## Preservation features

- Original formatting and structure
- Code snippets and variables
- Brand names and proper nouns
- Cultural nuances and context

### Tags

[translate](https://rewritebar.com/prompts/tags/translate)[language](https://rewritebar.com/prompts/tags/language)[localization](https://rewritebar.com/prompts/tags/localization)[multilingual](https://rewritebar.com/prompts/tags/multilingual)

Added on 5/9/2025
