Locale/iso - GitHub
文章推薦指數: 80 %
Contribute to Locale/iso development by creating an account on GitHub. ... This project is a ruby implementation of ISO 639-1 alpha2 and ISO 3166-1. Skiptocontent {{message}} Locale / iso Public Notifications Fork 12 Star 46 MITLicense 46 stars 12 forks Star Notifications Code Issues 2 Pullrequests 4 Actions Projects 0 Wiki Security Insights More Code Issues Pullrequests Actions Projects Wiki Security Insights master Branches Tags Couldnotloadbranches Nothingtoshow {{refName}} default Couldnotloadtags Nothingtoshow {{refName}} default 3 branches 13 tags Code Latestcommit Gitstats 69 commits Files Permalink Failedtoloadlatestcommitinformation. Type Name Latestcommitmessage Committime data lib locales spec .document .gitignore .rspec .travis.yml Gemfile Gemfile.lock Guardfile LICENSE.txt README.md Rakefile VERSION iso.gemspec Viewcode iso Languages Regions Tags I18n README.md iso ThisprojectisarubyimplementationofISO639-1alpha2andISO3166-1.Itincludesdefinitionsofalltwoletterlanguageandregioncodes. Languages LanguagesaredefinedbyISO639-1alpha-2;thatisthe2letterlowercaselanguagecode. Thesehavebeenaugmentedtocontainthepluralrulenamesandthelanguage'sdirection. >ISO::Language.find('ru') =>#<:language:0x007fe2ba43db50> Regions RegionsaredefinedbyISO3166-1;thatisthe2letteruppercaseregioncode. >ISO::Region.find('MX') =>#<:region:0x007fe2ba070e50> RegionscanalsobedefinedbytheUNM49standard;thatisthe3digitregioncode. >ISO::UN::Region.find('419') =>#<:region:0x007fe2ba43db50> Tags ThecombinationofalanguageandaregioniscalledaTag: >ISO::Tag.new('pt-BR') =>#<:tag:0x007fe2bb005b90>, @region=#<:region:0x007fe2ba412e28>> YoucancheckifaTagisvalidlikeso: >ISO::Tag.new('pt-BR').valid?=>true >ISO::Tag.new('lolcat').valid?=>false I18n Languageandregionnamesareinternationalized-contributetotheI18nprojectdirectlyonLocaleforanychanges. About Nodescription,website,ortopicsprovided. Resources Readme License MITLicense Stars 46 stars Watchers 3 watching Forks 12 forks Releases 13 tags Packages0 Nopackagespublished Contributors7 Languages Ruby 100.0% Youcan’tperformthatactionatthistime. Yousignedinwithanothertaborwindow.Reloadtorefreshyoursession. Yousignedoutinanothertaborwindow.Reloadtorefreshyoursession.
延伸文章資訊
- 1語系檔案的變數(locale)
語系檔案的變數(locale) ... Locale 設定由三個部分所組成:語言代碼(Language Code)、國碼(Country Code)、編碼(Encoding) ... UTF-8...
- 2ISO Locale codes - Mozilla
2 letter language codes are derived from the ISO 639 standard; country codes are from ISO 3166. H...
- 3Locales and code pages supported - IBM
- 4Locale/iso - GitHub
Contribute to Locale/iso development by creating an account on GitHub. ... This project is a ruby...
- 5List of ISO 639-1 codes - Wikipedia
ISO 639 is a standardized nomenclature used to classify languages. Each language is assigned a tw...