Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Missing locales for the modern toolkit? - Failed to resolve package ext-locale

    You found a bug! We've classified it as EXTJS-18877 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #11
    Sencha Premium Member poloyc's Avatar
    Join Date
    Jul 2010
    Location
    Torreon
    Posts
    8

    Default

    Me too!!! +1

  2. #12
    Sencha Premium Member
    Join Date
    Nov 2012
    Posts
    22

    Red face Workaround

    I found a way to fix this :


    1. Copy the "locale" folder from ext/classic/ to ext/modern
    2. Edit ext/modern/locale/package.json, set "toolkit" to value "modern"
    3. Now you can add the "requires" "locale" to the modern build settings, in your app.json, and it works



    Of course many, if not most of the translations are missing. For example, the Picker for selectfields or datefields is not translated by default. So for that just open ext/modern/locale/overrides/ext-locale-YOURLANG.js, and add the missing overrides.

    Example for Ext.picker.Picker (german translation in file ext-locale-de.js):

    Code:
    Ext.define('Ext.locale.de.picker.Picker', {
        override: 'Ext.picker.Picker',
        
        config: {
            doneButton: 'Speichern',
            cancelButton: 'Abbrechen'
        }
    });

    You might want to add these changed files to your version control system, not to loose it all when upgrading to the next Ext framework

  3. #13
    Sencha Premium Member
    Join Date
    Jan 2015
    Posts
    18

    Default

    Thank you very much!

    You can place the ext-locale-de.js file in your overrides folder of the app to avoid loosing this while upgrading to the next framework version.

    However, the "Done" button is still in the wrong language
    done.JPG

    My code:
    Code:
    Ext.define('Ext.locale.de.picker.Picker', {
      override: 'Ext.picker.Picker',
    
      config: {
        doneButton: 'Speichern',
        cancelButton: 'Abbrechen'
      }
    });

  4. #14
    Sencha Premium User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Location
    Goiânia - GO, Brazil
    Posts
    898

    Default

    You also need to override the Ext.picker.Date class

    Code:
    Ext.define('Ext.locale.pt_BR.picker.Date', {
        override: 'Ext.picker.Date',
    
    
        config: {
            doneButton: 'Concluído'
        }
    });
    Wemerson Januario @JanuarioCoder
    Novanti Tecnologia, Sencha MVP/ Ext JS Consultant
    ____________________________________________
    Hire me on UpWork:

    GitHub
    https://github.com/wemersonjanuario

    Treinamento e Consultoria Ext JS. QUALIFIQUE-SE JÁ!

  5. #15
    Sencha Premium User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Location
    Goiânia - GO, Brazil
    Posts
    898

    Default

    Hey guys , I have created the "missing" locale package for the modern toolkit, I hope this can be helpful while we don't have this done as an official Ext JS package. Please feel free and contribute by adding new translations for you language and also fix and improve current language overrides.


    https://github.com/wemersonjanuario/modern-locale
    Wemerson Januario @JanuarioCoder
    Novanti Tecnologia, Sencha MVP/ Ext JS Consultant
    ____________________________________________
    Hire me on UpWork:

    GitHub
    https://github.com/wemersonjanuario

    Treinamento e Consultoria Ext JS. QUALIFIQUE-SE JÁ!

  6. #16
    Sencha User
    Join Date
    Dec 2007
    Location
    Budapest, Hungary
    Posts
    129

    Default

    I have added a Hungarian translation for it, thanks for your effort, Wemerson!

  7. #17
    Sencha Premium User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Location
    Goiânia - GO, Brazil
    Posts
    898

    Default

    Quote Originally Posted by Zolcsi View Post
    I have added a Hungarian translation for it, thanks for your effort, Wemerson!
    Thanks for your effort too. Merged
    Wemerson Januario @JanuarioCoder
    Novanti Tecnologia, Sencha MVP/ Ext JS Consultant
    ____________________________________________
    Hire me on UpWork:

    GitHub
    https://github.com/wemersonjanuario

    Treinamento e Consultoria Ext JS. QUALIFIQUE-SE JÁ!

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [WRN] Failed to resolve package ext-local
    By cainwise in forum Sencha Cmd
    Replies: 6
    Last Post: 28 Sep 2015, 9:39 AM
  2. Ext.dd package when building with modern toolkit
    By andrew.chicago in forum Ext JS 6.x Q&A
    Replies: 3
    Last Post: 3 Aug 2015, 10:37 AM
  3. Failed to resolve package [email protected]
    By olakara in forum Ext JS 6.x Q&A
    Replies: 5
    Last Post: 24 Apr 2015, 6:59 AM
  4. Failed to resolve package during refresh
    By iamcootis in forum Ext 5: Q&A
    Replies: 1
    Last Post: 17 Feb 2015, 5:30 AM
  5. Build Problem! Failed to resolve package!
    By Landish in forum Sencha Architect 3.x: Q&A
    Replies: 6
    Last Post: 31 Mar 2014, 10:38 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •