マルチプラットフォームの現地語化

複数のプラットフォーム(例:Android と iOS)向けにアプリを翻訳する場合は、プラットフォームごとに個別のコンポーネントを構成してください。翻訳の反映 で文字列を同期させることができます。

ベストプラクティス:

  • プラットフォームごとに一つのコンポーネントを作る(例: MyApp Android、 MyApp iOS)。

  • 可能な限り、プラットフォーム間で同一の原文とキーが使われるようにする。

  • 一致する文字列の翻訳を自動的に再利用するには、翻訳の自動反映の有効化 を有効にしてください。

この設定により同じ作業を繰り返さずに済み、複数のプラットフォームで翻訳の一貫性が保てます。

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.

参考