Programming-[Backend]/Network, etc
국가별, 언어별 코드 표준: ISO 3166-1, ISO639-1, Accept-Language header
컴퓨터 탐험가 찰리
2023. 11. 16. 19:06
728x90
반응형
국가별 코드는 두 자리수로 표기하고, ISO 3166-1을 따른다.
https://www.iso.org/iso-3166-country-codes.html
ISO - ISO 3166 — Country Codes
Avoid confusion when referring to countries and their subdivisions with this standard.
www.iso.org
언어별 코드는 ISO 639-1을 따른다. 그리고 브라우저에서 제공하는 Accept-Language값은 이 ISO 639-1을 따른다.
https://www.iso.org/iso-639-language-code
ISO - ISO 639 — Language code
Describe languages in an internationally accepted way with this standard.
www.iso.org
언어별로 번역을 해줄 때는 ISO 639-1을 따르는게 브라우저의 Accept-Language header값과의 호환성이 좋다. 그리고 Asian Language 중, 일본은 국가 코드는 JP인데, 언어 코드는 ja 임을 유의해야한다.
728x90
반응형