-
Notifications
You must be signed in to change notification settings - Fork 4
Localization
Serge Gernyak edited this page Apr 27, 2014
·
3 revisions
Betfair's API-NG supports next locales:
- English - en
- Danish - da
- Swedish - sv
- German - de
- Italian - it
- Greek - el
- Spanish - es
- Turkish - tr
- Korean - ko
- Czech - cz
- Bulgarian - bg
- Russian - ru
- French - fr
- Portuguese - pt
- Thai- th
For choosing one of this locales you must before calling requests setup it in BetfairApiNgRails config. For example:
BetfairApiNgRails.config.locale = :ru
If you will use generator gem initializer will be in initializers folder and you may setting up default locale:
BetfairApiNgRails.config do |config|
config.locale = :ru
# rest of configuration
end
Also some requests parameters include locale. By default will be used locale from config but if you want to redefine it set locale key when requesting.