Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26667] Windows: Ti.Locale.getString should ignore non-string default value

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2019-01-02T21:37:19.000+0000
Affected Version/sRelease 7.5.0
Fix Version/sRelease 8.0.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2018-12-19T03:20:38.000+0000
Updated2019-01-03T12:32:07.000+0000

Description

If the supplied "default" value is a non-string, we should now "reject" it and treat it as if no default fallback was given. If no default was given, the original key is returned when no corresponding value is found.
Ti.API.info(Ti.Locale.getString('this_should_not_be_found', null) + '.eql(this_should_not_be_found)');
Ti.API.info(L('this_should_not_be_found', null) + '.eql(this_should_not_be_found)');
Ti.API.info(Ti.Locale.getString('this_should_not_be_found', 123) + '.eql(this_should_not_be_found)');
Ti.API.info(L('this_should_not_be_found', 123) + '.eql(this_should_not_be_found)');
Expected: key should be returned.

Comments

  1. Kota Iguchi 2018-12-19

    https://github.com/appcelerator/titanium_mobile_windows/pull/1337
  2. Keerthi Mahalingam 2019-01-02

    FR passed.
  3. Keerthi Mahalingam 2019-01-02

    PR merged.
  4. Samir Mohammed 2019-01-03

    Closing ticket. Fix verified in SDK version 8.0.0.v20190102142454 Test and other information can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/1337

JSON Source