2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

iOS では中国語(繁体字)を設定しているのに Flutter アプリで中国語(簡体字)で表示されてしまう

Posted at

概要

iOS では中国語(繁体字)を設定しているのに Flutter アプリで中国語(簡体字)で表示されてしまうことがあり解決方法を探した結果をメモしておきます。

解決方法

Flutter で supportedLocales の設定があり、こちらに言語コード(中国語 zh)と合わせて Locale 設定ができました。

ここで、スクリプトコード scriptCodeHant や国コード countryCodeTW を指定することで中国語(繁体字)で表示できました。

参考 URL

以下の URL に仕組みが詳しく記載されていました。

i18n 対応

ARB ファイルを利用して多言語対応している場合は、@@localezh_TW など国コードを一緒に指定すればよさそうです。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?