new WCAG20NLS(locale, abbrev, title, url, levels)
WCAG 2.0 information with properties with localized NLS values
Parameters:
Name | Type | Description |
---|---|---|
locale |
String | Language code |
abbrev |
String | Localized abbreviation of WCAG 2.0 guidelines |
title |
String | Localized title of WCAG 2.0 guidelines |
url |
String | URL to the translation of WCAG 2.0 |
levels |
Object | WCAG 2.0 levels for success criteria |
- Source:
- scripts/wcag20_nls.js, line 138
Properties:
Name | Type | Description |
---|---|---|
locale |
String | Language code |
abbrev |
String | Localized abbreviation of WCAG 2.0 guidelines |
title |
String | Localized title of WCAG 2.0 guidelines |
url |
String | URL to the translation of WCAG 2.0 |
levels |
Object | WCAG 2.0 levels for success criteria |
principles |
Array | Array of WCAG 2.0 principle objects associated with the principle |
Methods
-
<static> getEvaluationLevelsNLS(levels) → {String}
-
Returns an NLS localized version of WCAG 2.0 success criterion levels
Parameters:
Name Type Description levels
Number Numerical constant defined in OAA cache representing the evaluation levels - Source:
- scripts/wcag20_nls.js, line 281
Returns:
String representing the evaluation levels (i.e A, A and AA, A, AA and AAA)- Type
- String
-
<static> getNLSItemById(id) → {Object}
-
Returns an object with a localized version of WCAG 2.0 requirements
Parameters:
Name Type Description id
String id for the wcag item to get NLS information - Source:
- scripts/wcag20_nls.js, line 173
Returns:
WCAG 2.0 NLS object- Type
- Object
-
<static> getNLSWCAG20Level(level)
-
Returns an NLS localized version of WCAG 2.0 success criterion level
Parameters:
Name Type Description level
Number Numerical constant defined in OAA cache representing the WCAG 2.0 success criterion level - Source:
- scripts/wcag20_nls.js, line 261
-
<static> getSuccessCriteriaLevel(sc_id) → {Number}
-
Returns the success criteria
Parameters:
Name Type Description sc_id
String String representing the success criteria id - Source:
- scripts/wcag20_nls.js, line 221
Returns:
Number representing the WCAG 2.0 success level- Type
- Number
-
<static> toJSON(prefix) → {String}
-
Returns an nls JSON representation of wcag 2.0 information
Parameters:
Name Type Description prefix
String A prefix string typically spaces - Source:
- scripts/wcag20_nls.js, line 299
Returns:
JSON formatted string- Type
- String