VintaSoft Imaging .NET SDK 10.0 for Web
Vintasoft.Shared Namespace / VintasoftLocalizationJS type
In This Topic
    VintasoftLocalizationJS type
    In This Topic
    Provides functionality for localization of UI elements, DOM elements and strings.
    Syntax
    var instance = new Vintasoft.Shared.VintasoftLocalizationJS();
    function VintasoftLocalizationJS;
    Remarks
    For using localization functionality is necessary to do the following steps:
    • Create folder, for example "locales", which will store files necessary for localization.
    • In folder "locales" create a JSON file, for example "settings.json", which will store information about supported localization languages.
    • In folder "locales" for each supported localization language add dictionary file. File name must be in the following format: "{locale}.txt", for example "en.txt".
    • In "head" section of HTML page, which must be localized, add a "link" element with attribute "[rel='localization']". Here is example: "<link rel='localization' href='/locales/settings.json'>".
    • In footer of HTML page create instance of this class.
    Inheritance Hierarchy

    Object
       Vintasoft.Shared.VintasoftLocalizationJS

    Browser Compatibility
    9
    5
    15
    5
    Constructors
     NameDescription
    public ConstructorProvides functionality for localization of UI elements, DOM elements and strings.  
    Top
    Methods
     NameDescription
    public MethodGets a value indicating whether the localizer is ready for localization.  
    public MethodReturns localization info for the specified localization identifier.  
    public MethodLocalizes all DOM elements, which have the "localizationId" attribute.  
    Top
    Events
     NameDescription
    public EventOccurs when localizer is ready for localization.  
    Top
    See Also