pub struct Localization {
pub bundle_development_region: Option<String>,
pub bundle_localizations: Option<Vec<BundleLocalizations>>,
pub bundle_allow_mixed_localizations: Option<bool>,
pub caps_lock_language_switch_capable: Option<bool>,
}Expand description
Localization
Fields§
§bundle_development_region: Option<String>The default language and region for the bundle, as a language ID.
The system uses this key as the language if it can’t locate a resource for the user’s preferred language. The value should be a language ID that identifies a language, dialect, or script.
To distinguish between different languages and regional dialects, use a language designator with a region designator and a script designator separated by hyphens. To specify the English language as it’s used in the United Kingdom, use en-GB, where GB is the region designator. To represent Mandarin Chinese, spoken in Taiwan, and written in Traditional Chinese script, use zh-Hant-TW.
To specify a script, combine a language designator with a script designator separated by a hyphen, as in az-Arab for Azerbaijani in the Arabic script.
§Availability
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
§Framework
Core Foundation
bundle_localizations: Option<Vec<BundleLocalizations>>The localizations handled manually by your app.
§Availability
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
§Framework
Core Foundation
bundle_allow_mixed_localizations: Option<bool>A Boolean value that indicates whether the bundle supports the retrieval of localized strings from frameworks.
§Availability
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
§Framework
Core Foundation
caps_lock_language_switch_capable: Option<bool>A Boolean value that enables the Caps Lock key to switch between Latin and non-Latin input sources.
Latin input sources, such as ABC, U.S., and Vietnamese, output characters in Latin script. Non-Latin input sources, such as Bulgarian (Cyrillic script), Hindi (Devanagari script), and Urdu (Arabic script), output characters in scripts other than Latin.
After implementing the key, users can enable or disable this functionality by modifying the “Use Caps Lock to switch to and from” preference, which can be found in System Preferences > Keyboard > Input Sources.
§Availability
- macOS 10.15+
§Framework
- AppKit
Trait Implementations§
Source§impl Clone for Localization
impl Clone for Localization
Source§fn clone(&self) -> Localization
fn clone(&self) -> Localization
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Localization
impl Debug for Localization
Source§impl Default for Localization
impl Default for Localization
Source§fn default() -> Localization
fn default() -> Localization
Source§impl<'de> Deserialize<'de> for Localization
impl<'de> Deserialize<'de> for Localization
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for Localization
impl PartialEq for Localization
Source§impl Serialize for Localization
impl Serialize for Localization
impl Eq for Localization
impl StructuralPartialEq for Localization
Auto Trait Implementations§
impl Freeze for Localization
impl RefUnwindSafe for Localization
impl Send for Localization
impl Sync for Localization
impl Unpin for Localization
impl UnwindSafe for Localization
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.