Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-27892

Android: Update toLocale*String() methods to support locale/options

    Details

    • Story Points:
      8
    • Sprint:
      2020 Sprint 10, 2020 Sprint 11, 2020 Sprint 12, 2020 Sprint 13, 2020 Sprint 14, 2020 Sprint 15

      Description

      Summary:
      On Android, the following methods ignore the locales and options arguments. They also ignore the current locale and always use "en-US" when formatting a string.

      On iOS, the above methods do support locale/options.
      We should add the same on Android for parity and to better support the standard JavaScript APIs.

      Note:
      To add official Intl support to V8, we would have to #if it in, but this involves adding the ICU (International Components for Unicode) C++ library which is about 20 MB per architecture. This is too big and is not mobile friendly. Especially since Google Play has a 100 MB limit on APKs. So, the most reasonable solution is to implement this ourselves in Java.

      Alternatives:
      On older Titanium versions, your only option to generate localized strings was via APIs:

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                jquick Joshua Quick
                Reviewer:
                Christopher Williams
                Tester:
                Samir Mohammed
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration