cristallium opened a new issue, #1190:
URL: https://github.com/apache/royale-asjs/issues/1190

   Hi,
   I have issue when trying to use RessourceManager
   
   I have set this in asconfig.json : 
   
   ```
     "source-path": [
               "src/main/resources",
               "locale/fr_FR",
               "locale/en_US"
           ],
   "locale": ["en_US","fr_FR"],
   ```
   ( if I set locale/{locale} compiler complain about invalid source path )
   
   files are `locale/fr_FR/AppMessages.properties` and 
`locale/en_US/AppMessages.properties`
   
   content is like this : 
   
   `MENU_1=MyMenu1`
   
   In App.mxml I added : 
   ```
        <fx:Metadata>
                [ResourceBundle("AppMessages")]
        </fx:Metadata>
   
   ```
   
   ```
   Now running the app give nothing : 
   
   var locales:Array = ResourceManager.getInstance().getLocales(); // return 
empty array
   trace(ResourceManager.getInstance().getString('AppMessages','MENU_1')); 
//return null
   ```
   Could someone tell me how to do ? Thank in advance


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to