• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Globalization<a name="EN-US_TOPIC_0000001115837954"></a>
2
3## Introduction<a name="section11660541593"></a>
4
5If 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:
6
7-   **Resource management**
8
9    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.
10
11-   **Internationalization \(i18n\)**
12
13    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.
14
15
16## Architecture<a name="section1558604311012"></a>
17
18**Figure 1** Architecture of the globalization subsystem<a name="fig1687592425010"></a>
19
20
21![](figures/architecture-of-the-globalization-subsystem.png "architecture-of-the-globalization-subsystem")
22
23## Directory Structure<a name="section161941989596"></a>
24
25The source code of the Globalization subsystem is stored in the  **/base/global**  directory.
26
27The directory structure of the Globalization subsystem for the mini and small systems is as follows:
28
29```
30/base/global/
31├── i18n_lite               # Code repository for the i18n framework
32│   ├── frameworks          # Core code of the i18n framework
33│   │   ├── i18n            # i18n module
34│   │   │   ├── include     # Header files
35│   │   │   ├── src         # Implementation code
36│   │   │   └── test        # Test code
37│   ├── interfaces          # APIs
38│   │   ├── kits            # Application APIs
39│   │   │   ├── i18n        # C/C++ i18n APIs
40│   │   │   └── js          # C/C++ support for JavaScript APIs
41├── resmgr_lite             # Code repository for the Resmgr framework
42│   ├── frameworks          # Core code of the Resmgr framework
43│   │   ├── resmgr          # Resource parsing code
44│   │   │   ├── include     # Header files
45│   │   │   └── src         # Implementation code
46│   ├── interfaces          # APIs
47│   │   └── innerkits       # APIs for internal subsystems
48```
49
50The directory structure of the Globalization subsystem for the standard system is as follows:
51
52```
53/base/global
54├── i18n           # Code repository for the i18n framework
55│   ├── frameworks          # Core code of the i18n framework
56│   ├── interfaces          # APIs
57│   │   ├── js              # JavaScript APIs
58│   │   └── native          # Native APIs
59├── resmgr_standard         # Code repository for the Resmgr module
60│   ├── frameworks          # Core code
61│   │   ├── resmgr          # Resource parsing code
62│   │   │   ├── include     # Header files
63│   │   │   ├── src         # Implementation code
64│   │   │   └── test        # Test code
65│   ├── interfaces          # APIs
66│   │   ├── innerkits       # APIs for internal subsystems
67│   │   └── js              # JavaScript APIs
68```
69
70## Repositories Involved<a name="section1371113476307"></a>
71
72**Globalization subsystem**
73
74[global\_i18n\_lite](https://gitee.com/openharmony/global_i18n_lite)
75
76[global\_i18n](https://gitee.com/openharmony/global_i18n)
77
78[global\_resmgr\_lite](https://gitee.com/openharmony/global_resmgr_lite)
79
80[global\_resmgr\_standard](https://gitee.com/openharmony/global_resmgr_standard)
81
82