How do I export Japan provinces in Japanese characters from my Shopify order data?

The Shopify Order API will return Japan province names in Latin characters.  For example, it will return "Tōkyō" instead of "東京都".

You can export the province names in Japanese characters with EZ Exporter by utilizing the get_attribute_value() function in Calculated Fields.  Basically, you just provide a key/value mapping where the "key" part is the value coming from Shopify, and the "value" part is the equivalent in Japanese characters.

The API also has a province_code field which is shorter and probably more reliable in case the province names have different variations in spelling.

See below for a list of Japanese province codes and their equivalent province names in English and Japanese:

The formula below will output the province names in Japanese by looking up the value of shipping_address.province_code.

get_attribute_value('{"JP-01":"北海道","JP-02":"青森県","JP-03":"岩手県","JP-04":"宮城県","JP-05":"秋田県","JP-06":"山形県","JP-07":"福島県","JP-08":"茨城県","JP-09":"栃木県","JP-10":"群馬県","JP-11":"埼玉県","JP-12":"千葉県","JP-13":"東京都","JP-14":"神奈川県","JP-15":"新潟県","JP-16":"富山県","JP-17":"石川県","JP-18":"福井県","JP-19":"山梨県","JP-20":"長野県","JP-21":"岐阜県","JP-22":"静岡県","JP-23":"愛知県","JP-24":"三重県","JP-25":"滋賀県","JP-26":"京都府","JP-27":"大阪府","JP-28":"兵庫県","JP-29":"奈良県","JP-30":"和歌山県","JP-31":"鳥取県","JP-32":"島根県","JP-33":"岡山県","JP-34":"広島県","JP-35":"山口県","JP-36":"徳島県","JP-37":"香川県","JP-38":"愛媛県","JP-39":"高知県","JP-40":"福岡県","JP-41":"佐賀県","JP-42":"長崎県","JP-43":"熊本県","JP-44":"大分県","JP-45":"宮崎県","JP-46":"鹿児島県","JP-47":"沖縄県"}', {{ shipping_address.province_code }})

App: EZ Exporter

Tags: advanced features, calculated fields, translations, japan