• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Globalization<a name="EN-US_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 devices and 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 subsystem 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="fig1687592425010"></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├── cust_lite               # Code repository for the Cust framework
54│   ├── frameworks          # Core code of the Cust framework
55│   │   ├── cust_lite       # Cust framework
56│   │   │   ├── src         # Implementation code
57│   │   │   └── test        # Test code
58│   ├── interfaces          # APIs
59│   │   └── innerkits       # APIs for internal subsystems
60```
61
62The directory structure of the Globalization subsystem for the standard system is as follows:
63
64```
65/base/global
66├── i18n_standard           # Code repository for the i18n framework
67│   ├── frameworks          # Core code of the i18n framework
68│   ├── interfaces          # APIs
69│   │   ├── js              # JavaScript APIs
70│   │   └── native          # Native APIs
71├── resmgr_standard         # Code repository for the Resmgr module
72│   ├── frameworks          # Core code
73│   │   ├── resmgr          # Resource parsing code
74│   │   │   ├── include     # Header files
75│   │   │   ├── src         # Implementation code
76│   │   │   └── test        # Test code
77│   ├── interfaces          # APIs
78│   │   ├── innerkits       # APIs for internal subsystems
79│   │   └── js              # JavaScript APIs
80```
81
82## Repositories Involved<a name="section1371113476307"></a>
83
84**Globalization subsystem**
85
86global\_cust\_lite
87
88global\_i18n\_lite
89
90global\_i18n\_standard
91
92global\_resmgr\_lite
93
94global\_resmgr\_standard
95
96