• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Globalization Subsystem<a name="ZH-CN_TOPIC_0000001115837954"></a>
2
3-   [Introduction](#section11660541593)
4-   [Architecture] (#section1558604311012)
5-   [Directory Structure](#section161941989596)
6-   [Repositories Involved](#section1371113476307)
7
8## Introduction<a name="section11660541593"></a>
9
10If OpenHarmony systems or applications need to be used globally, they must meet the requirements of users in different regions on languages and cultures. The Globalization subsystem provides the multi-language and multi-cultural capabilities for global use, including:
11
12-   **Resource management**
13
14    The module loads, parses, and initializes system and application resources based on device types and system configurations, and provides APIs for obtaining resources such as character strings and media files.
15
16-   **Internationalization (i18n)**
17
18    The subsystem provides the bottom-layer resource backtracking capabilities, with a wide array of i18n APIs for implementing functions such as date/time formatting, number formatting, phone number formatting, and singular-plural formatting.
19
20
21## Architecture<a name="section1558604311012"></a>
22
23**Figure 1** Architecture of the globalization subsystem<a name="fig87184592416"></a>
24
25
26![](figures/architecture-of-the-globalization-subsystem.png "architecture-of-the-globalization-subsystem")
27
28## Directory Structure<a name="section161941989596"></a>
29
30The source code of the Globalization subsystem is stored in the **/base/global** directory.
31
32The directory structure of the Globalization subsystem for the mini and small systems is as follows:
33
34```
35/base/global/
36├── i18n_lite               # Code repository for the i18n framework
37│   ├── frameworks          # Core code of the i18n framework
38│   │   ├── i18n            # i18n module
39│   │   │   ├── include     # Header files
40│   │   │   ├── src         # Implementation code
41│   │   │   └── test        # Test code
42│   ├── interfaces          # APIs
43│   │   ├── kits            # Application APIs
44│   │   │   ├── i18n        # C/C++ i18n APIs
45│   │   │   └── js          # C/C++ support for JavaScript APIs
46├── resmgr_lite             # Code repository for the Resmgr framework
47│   ├── frameworks          # Core code of the Resmgr framework
48│   │   ├── resmgr          # Resource parsing code
49│   │   │   ├── include     # Header files
50│   │   │   └── src         # Implementation code
51│   ├── interfaces          # APIs
52│   │   └── innerkits       # APIs for internal subsystems
53```
54
55The directory structure of the Globalization subsystem for the standard system is as follows:
56
57```
58/base/global
59├── i18n_standard           # Code repository for the i18n framework
60│   ├── frameworks          # Core code of the i18n framework
61│   ├── interfaces          # APIs
62│   │   ├── js              # JavaScript APIs
63│   │   └── native          # Native APIs
64├── resmgr_standard         # Code repository for the Resmgr module
65│   ├── frameworks          # Core code
66│   │   ├── resmgr          # Resource parsing code
67│   │   │   ├── include     # Header files
68│   │   │   ├── src         # Implementation code
69│   │   │   └── test        # Test code
70│   ├── interfaces          # APIs
71│   │   ├── innerkits       # APIs for internal subsystems
72│   │   └── js              # JavaScript APIs
73```
74
75## Repositories Involved<a name="section1371113476307"></a>
76
77Globalization subsystem
78
79[global\_i18n\_lite](https://gitee.com/openharmony/global_i18n_lite)
80
81[global\_i18n](https://gitee.com/openharmony/global_i18n)
82
83[global\_resmgr\_lite](https://gitee.com/openharmony/global_resmgr_lite)
84
85[global\_resmgr\_standard](https://gitee.com/openharmony/global_resmgr_standard)
86