# Resmgr - [Introduction](#section11660541593) - [Directory Structure](#section1464106163817) - [Constraints](#section1718733212019) - [Usage](#section894511013511) - [Repositories Involved](#section15583142420413) ## Introduction The 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. ## Directory Structure The directory structure of the Resmgr module is as follows: ``` /base/global/ ├── resource_management # Code repository for the Resmgr module │ ├── frameworks # Core code │ │ ├── resmgr # Resource parsing code │ │ │ ├── include # Header files │ │ │ ├── src # Implementation code │ │ │ └── test # Test code │ ├── interfaces # APIs │ │ ├── inner_api # APIs for internal subsystems │ │ └── js # JavaScript APIs ``` ## Constraints **Development language**: JavaScript ## Usage Call the **getString** API to obtain the resource information of the application. ``` import resmgr from '@ohos.resmgr' ..... resmgr.getResourceManager((error,mgr) => { // callback mgr.getString(0x1000000, (error, value) => { if (error != null) { console.log(error); } else { console.log(value); } }); // promise mgr.getString(0x1000000).then(value => { console.log(value); }).catch(error => { console.log("getstring promise " + error); }); }); ``` ## Repositories Involved Globalization subsystem global\_i18n\_standard **global\_resmgr\_standard**