Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.35 KB

File metadata and controls

52 lines (36 loc) · 1.35 KB

language

The language stanza can match language codes (ISO 639-1 or ISO 639-2), regional identifiers (ISO 3166-1 Alpha 2) and script codes (ISO 15924), or a combination thereof.

US English should always be used as the default language:

language 'zh', 'CN' do
  'zh_CN'
end

language 'de' do
  'de_DE'
end

language 'en-GB' do
  'en_GB'
end

language 'en', default: true do
  'en_US'
end

Note that the following are not the same:

language 'en', 'GB' do
  # matches all locales containing 'en' or 'GB'
end

language 'en-GB' do
  # matches only locales containing 'en' and 'GB'
end

The return value of the matching language block can be accessed by simply calling language.

homepage "https://example.org/#{language}"

Examples: Firefox, Battle.net

Installation

To install a cask in a specific language, you can pass the --language= option to brew cask install:

brew cask install firefox --language=it