Feature Request: Localization for trending iv-org#331

This commit is contained in:
Dmitry Sandalov
2021-10-21 14:54:15 +03:00
parent 129779a757
commit d9c58c4837
8 changed files with 34 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ struct Preferences
@[JSON::Field(converter: Preferences::ProcessString)]
property locale : String = CONFIG.default_user_preferences.locale
property region : String? = CONFIG.region != nil ? CONFIG.region : CONFIG.default_user_preferences.region
@[JSON::Field(converter: Preferences::ClampInt)]
property max_results : Int32 = CONFIG.default_user_preferences.max_results