Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5988] Accessibility: properties localization

GitHub Issuen/a
TypeImprovement
Priorityn/a
StatusResolved
ResolutionInvalid
Resolution Date2018-10-23T14:41:11.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsaccessibility
ReporterSergey Volkov
AssigneeShak Hossain
Created2018-10-23T14:24:35.000+0000
Updated2018-10-23T14:41:11.000+0000

Description

Currently in SDK we have properties on some view types which could be used for auto-localization, e.g. "Button.titleid", "TextField.hinttextid" and "AlertDialog.messageid". For a11y properties there are only "accessibilityHint" and "accessibilityLabel" (also "accessibilityValue", but it could be a number). It's possible to set correctly localized values on runtime using "L('some_id')", but will be much easier if there are was additional properties as described above.

Comments

  1. Rene Pot 2018-10-23

    Hi [~s.volkov], as discussed on Slack you can use the L() method in tss too, which should solve the issue you're having.
       "#myUIProperty": {
         accessibilityLabel: L("some_id")
       }
       

JSON Source