Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Language and Region

Language and Region

potatotips-77

Eae7b6aeee72d3081b01d09a2d675f9a?s=128

Akio Itaya

March 24, 2022
Tweet

More Decks by Akio Itaya

Other Decks in Programming

Transcript

  1. AKKEY / AKIO ITAYA Language & Region WED, Inc.

  2. ໊લɿ൘୩ ߊྑɹ/ɹ͖͋ͬʔ झຯɿۭؒσβΠϯ ׆ಈɿ@AkkeyLab ۙگɿApple Pro Display XDR ങ͍·ͨ͠🍎 


    
 WED, Inc. ݩ Cyberagent, Inc. ۝भʢ෱Ԭʣग़਎ɹ̍̔೥৽ଔ iOS ΤϯδχΞ ࣗݾ঺հ
  3. օ͞ΜͷεϚϗઃఆ͸ʁ🙋 Language & Region

  4. None
  5. None
  6. Ϣʔβ͞Μ͔Β͓໰͍߹Θͤ 📞

  7. Ϣʔβ͞Μ͔Β͓໰͍߹Θͤ 5ܻҎ্ͷֹ͕ۚೖྗͰ͖·ͤΜʂ ۀछ໰Θͣ

  8. Ϣʔβ͞Μ͔Β͓໰͍߹Θͤ ۀछ໰Θͣ Re: αʔυύʔςΟ੡ΩʔϘʔυ͸ར༻ͯ͠·ͤΜ͔ʁ Re: ௐࠪͷͨΊ࠶ݱಈըΛ͍͚ͨͩͳ͍Ͱ͠ΐ͏͔ʁ 5ܻҎ্ͷֹ͕ۚೖྗͰ͖·ͤΜʂ

  9. Ϣʔβ͞Μ͔Β͓໰͍߹Θͤ ۀछ໰Θͣ Re: αʔυύʔςΟ੡ΩʔϘʔυ͸ར༻ͯ͠·ͤΜ͔ʁ Re: ௐࠪͷͨΊ࠶ݱಈըΛ͍͚ͨͩͳ͍Ͱ͠ΐ͏͔ʁ Re:Re: ७ਖ਼ΩʔϘʔυΛ࢖༻ˍ࠶ݱಈըڞ༗͠·͢ 5ܻҎ্ͷֹ͕ۚೖྗͰ͖·ͤΜʂ

  10. Ϣʔβ͞Μ͔Β͓໰͍߹Θͤ ۀछ໰Θͣ 1ԁ 5ܻҎ্ͷֹ͕ۚೖྗͰ͖·ͤΜʂ ࠶ݱಈըͷ࠶ݱ

  11. Ϣʔβ͞Μ͔Β͓໰͍߹Θͤ ۀछ໰Θͣ 1ԁ 10ԁ 5ܻҎ্ͷֹ͕ۚೖྗͰ͖·ͤΜʂ ࠶ݱಈըͷ࠶ݱ

  12. Ϣʔβ͞Μ͔Β͓໰͍߹Θͤ ۀछ໰Θͣ 1ԁ 10ԁ 100ԁ 5ܻҎ্ͷֹ͕ۚೖྗͰ͖·ͤΜʂ ࠶ݱಈըͷ࠶ݱ

  13. Ϣʔβ͞Μ͔Β͓໰͍߹Θͤ ۀछ໰Θͣ 1ԁ 10ԁ 100ԁ 1.000ԁ 5ܻҎ্ͷֹ͕ۚೖྗͰ͖·ͤΜʂ ࠶ݱಈըͷ࠶ݱ

  14. Ϣʔβ͞Μ͔Β͓໰͍߹Θͤ ۀछ໰Θͣ 1ԁ 10ԁ 100ԁ 1.000ԁ 5ܻҎ্ͷֹ͕ۚೖྗͰ͖·ͤΜʂ ԁ ࠶ݱಈըͷ࠶ݱ

  15. Ϣʔβ͞Μ͔Β͓໰͍߹Θͤ ۀछ໰Θͣ 1ԁ 10ԁ 100ԁ 1.000ԁ ⁉ 5ܻҎ্ͷֹ͕ۚೖྗͰ͖·ͤΜʂ ԁ ࠶ݱಈըͷ࠶ݱ

  16. Ϣʔβ͞Μ͔Β͓໰͍߹Θͤ ۀछ໰Θͣ 5ܻҎ্ͷֹ͕ۚೖྗͰ͖·ͤΜʂ 1.000ԁ ΧϯϚ͡Όͳ͍…ͩͱʂ

  17. ·ͣ͸ެࣜυΩϡϝϯτ📚

  18. ·ͣ͸ެࣜυΩϡϝϯτ ۀछ໰Θͣ 1,000ԁ Grouping Separator For example, the grouping separator

    used in the United States is the comma (“10,000”) whereas in France it is the space (“10 000”). https://developer.apple.com/documentation/foundation/numberformatter/1412157-groupingseparator
  19. ·ͣ͸ެࣜυΩϡϝϯτ ۀछ໰Θͣ 1,000ԁ Grouping Separator For example, the grouping separator

    used in the United States is the comma (“10,000”) whereas in France it is the space (“10 000”). https://developer.apple.com/documentation/foundation/numberformatter/1412157-groupingseparator
  20. ͠ɺ஌Βͳ͔ͬͨ😨

  21. ΋͏গ͠ௐ΂ͯΈΔ👩🏫

  22. ΋͏গ͠ௐ΂ͯΈΔ https://coliss.com/articles/build-websites/operation/writing/53.html Region Example Currency Grouping Separator ೔ຊ 1,234.00 ¥

    ,ʢΧϯϚɾίϯϚʣ ΞϝϦΧ 1,234.00 $ ,ʢΧϯϚɾίϯϚʣ υΠπ 1.234,00 € .ʢϐϦΦυʣ ϑϥϯε 1 234,00 € εϖʔε εΠε 1’234.00 SFr. ’ʢΞϙετϩϑΟʣ
  23. ରԠํ਑ 🔨

  24. 1. मਖ਼͢ΔࢫΛ఻͑ɺԠٸॲஔํ๏Λ఻͑Δ 2. จࣈྻͰʮ,ʯΛࢦఆ͍ͯ͠ΔՕॴͷ೺Ѳ 3. NumberFormatter().currencyGroupingSeparator ʹஔ׵ 4. ෳ਺ݴޠͰಈ࡞֬ೝ ରԠํ਑

  25. 1. मਖ਼͢ΔࢫΛ఻͑ɺԠٸॲஔํ๏Λ఻͑Δ 2. จࣈྻͰʮ,ʯΛࢦఆ͍ͯ͠ΔՕॴͷ೺Ѳ 3. NumberFormatter().currencyGroupingSeparator ʹஔ׵ 4. ෳ਺ݴޠͰಈ࡞֬ೝ ରԠํ਑

  26. 1. मਖ਼͢ΔࢫΛ఻͑ɺԠٸॲஔํ๏Λ఻͑Δ 2. จࣈྻͰʮ,ʯΛࢦఆ͍ͯ͠ΔՕॴͷ೺Ѳ 3. NumberFormatter().currencyGroupingSeparator ʹஔ׵ 4. ෳ਺ݴޠͰಈ࡞֬ೝ ରԠํ਑

  27. 1. मਖ਼͢ΔࢫΛ఻͑ɺԠٸॲஔํ๏Λ఻͑Δ 2. จࣈྻͰʮ,ʯΛࢦఆ͍ͯ͠ΔՕॴͷ೺Ѳ 3. NumberFormatter().currencyGroupingSeparator ʹஔ׵ 4. ෳ਺ݴޠͰಈ࡞֬ೝ ରԠํ਑

  28. ஫ҙ఺ ⚠

  29. ஫ҙ఺ Xcode ͔ΒϏϧυͨঢ়ଶͩͱ γϛϡϨʔλͷ Region ͕൓ө͞Εͳ͍͜ͱ͕͋Γ·͢ Xcode ͔Β੾அޙ ΋͘͠͸࣮ػͰ֬ೝ͠·͠ΐ͏ʂ

  30. Ϣʔβ͞Μ͔Βฦ৴ 📩

  31. Ϣʔβ͞Μ͔Βฦ৴ ۀछ໰Θͣ Re:Re:Re: ஍Ҭ͕ΞΠϧϥϯυʹͳ͍ͬͯͨͷͰ Re:Re:Re: ೔ຊʹมߋͨ͠Βվળ͠·ͨ͠ʂʂʂ 5ܻҎ্ͷֹ͕ۚೖྗͰ͖·ͤΜʂ 🎉

  32. Thank you !!