Skip to content
Sections
>> Trisquel >> 套件 >> aramo >> ruby >> ruby-http-accept-language
etiona  ] [  nabia  ] [  aramo  ]
[ 原始碼: ruby-http-accept-language  ]

套件: ruby-http-accept-language (2.1.1-3)

Ruby library that finds out which locale the user prefers

This ruby library reads the language user specified in their browser and returns the language in an array. This package will be useful in cases where the locale should be selected depending on the user's locale settings automatically.

Features

 * Splits the http-header into languages specified by the user
 * Returns empty array if header is malformed.
 * Corrects case to xx-XX
 * Sorted by priority given, as much as possible.
 * Gives you the most important language
 * Gives compatible languages

其他與 ruby-http-accept-language 有關的套件

  • 依賴
  • 推薦
  • 建議
  • sug: ruby-railties
    tools for creating, working with, and running Rails applications

下載 ruby-http-accept-language

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 7.0 kB33 kB [文件列表]