# Multi-platform localization

When translating apps for multiple platforms (e.g., Android and iOS), configure
separate components for each platform. The [Propagação de tradução](https://docs.weblate.org/pt-br/latest/admin/continuous.md#translation-propagation) will
help you to keep the strings in sync.

Práticas recomendadas:

- Create one component per platform (e.g., MyApp Android, MyApp iOS).
- Ensure identical source strings and keys are used across platforms where possible.
- Habilitar [Permitir propagação de tradução](https://docs.weblate.org/pt-br/latest/admin/projects.md#component-allow-translation-propagation) para reusar automaticamente traduções para textos correspondentes.

This setup avoids duplicate work and keeps translations consistent across platforms.

Translation propagation only reuses matching strings. The source text and
context have to be identical. For monolingual formats, the key has to match as
well. Propagation does not convert message syntax or semantics, so strings
using different placeholder syntaxes, such as `Hello {name}` and
`Hello %s`, do not match.

When consumers use the same messages but require different runtime
representations, consider keeping one canonical localization format and
generating consumer-specific resources in the build pipeline. This also allows
the generated resources to contain only the strings and languages needed by
each consumer. Use separate components when translators need to maintain
genuinely different messages. Disable translation propagation for these
components, or assign distinct keys or contexts to platform-specific messages,
so later edits do not overwrite intentional differences.

#### SEE ALSO
* [Kotlin SDK for Android](https://docs.weblate.org/pt-br/latest/devel/kotlin-sdk.md) for Android translation updates without rebuilding the application
* [Mantendo traduções iguais entre componentes](https://docs.weblate.org/pt-br/latest/admin/continuous.md#translation-consistency)
* [Translating special text safely](https://docs.weblate.org/pt-br/latest/user/translating.md#translating-special-text)
