Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WinJS.Resources Namespace

Applies to Windows and Windows Phone

Provides functions for accessing resources and localizing content.

The WinJS.Resources namespace has these types of members:

Functions

FunctionDescription

addEventListener function

Registers an event handler for the specified event. Use this method to register for events that are related to resources, such as when the app's language, scale, or contrast changes.

dispatchEvent function

Raises an event of the specified type and with the specified additional properties.

getString function

Retrieves the resource string that has the specified resource identifier.

processAll function

Processes data-win-res attributes on elements and replaces attributes and properties with resource strings.

removeEventListener method

Removes an event listener that the addEventListener method registered.

 

Events

EventDescription

oncontextchanged event

Occurs when the user changes the system's language or contrast, or the scale of the display, or when the user changes any of the items in the current context's qualifier values list. For more info about the current context's qualifier values list, see the Remarks section.

 

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Library

Base.js

 

 

Show:
© 2014 Microsoft