1# Resmgr<a name="EN-US_TOPIC_0000001162518223"></a> 2 3- [Introduction](#section11660541593) 4- [Directory Structure](#section1464106163817) 5- [Constraints](#section1718733212019) 6- [Usage](#section894511013511) 7- [Repositories Involved](#section15583142420413) 8 9## Introduction<a name="section11660541593"></a> 10 11The resource management module, namely, Resmgr, provides the function of loading multi-language GUI resources for applications, for example, displaying the application names or icons specific to a certain language. 12 13## Directory Structure<a name="section1464106163817"></a> 14 15The directory structure of the Resmgr module is as follows: 16 17``` 18/base/global/ 19├── resource_management # Code repository for the Resmgr module 20│ ├── frameworks # Core code 21│ │ ├── resmgr # Resource parsing code 22│ │ │ ├── include # Header files 23│ │ │ ├── src # Implementation code 24│ │ │ └── test # Test code 25│ ├── interfaces # APIs 26│ │ ├── inner_api # APIs for internal subsystems 27│ │ └── js # JavaScript APIs 28``` 29 30## Constraints<a name="section1718733212019"></a> 31 32**Development language**: JavaScript 33 34## Usage<a name="section894511013511"></a> 35 36Call the **getString** API to obtain the resource information of the application. 37 38``` 39import resmgr from '@ohos.resmgr' 40..... 41 resmgr.getResourceManager((error,mgr) => { 42 // callback 43 mgr.getString(0x1000000, (error, value) => { 44 if (error != null) { 45 console.log(error); 46 } else { 47 console.log(value); 48 } 49 }); 50 51 // promise 52 mgr.getString(0x1000000).then(value => { 53 console.log(value); 54 }).catch(error => { 55 console.log("getstring promise " + error); 56 }); 57 }); 58``` 59 60## Repositories Involved<a name="section15583142420413"></a> 61 62Globalization subsystem 63 64global\_i18n\_standard 65 66**global\_resmgr\_standard** 67 68