README.md
1# Internationalization
2
3### Introduction
4
5Internationalization enables the same date to be displayed in different formats for different languages. This sample shows how to internationalize a date in English, Chinese, and Japanese.
6
7### Usage
8
9The sample app obtains the system date.
10
111. Touch **English** to display the date in the English format.
12
132. Touch **Chinese** to display the date in the Chinese format.
14
153. Touch **Japanese** to display the date in the Japanese format.
16
17### Constraints
18
19This sample can only be run on standard-system devices.
20
README_zh.md
1# 国际化
2
3### 简介
4
5不同地域,同一日期在国际化之后,拥有不同的格式。本示例展示了英国、中国、日本三个地域对同一日期进行国际化。
6
7实现效果如下:
8
9
10
11### 相关概念
12
13TextClock:TextClock组件通过文本将当前系统时间显示在设备上。支持不同时区的时间显示,最高精度到秒级。
14
15### 相关权限
16
17不涉及。
18
19### 使用说明
20
21应用直接获取系统当前时间
22
231.点击**英文国际化**,将获取到的系统时间进行英文国际化,展示英文格式的日期。
24
252.点击**中文国际化**,将获取到的系统时间进行中文国际化,展示中文格式的日期。
26
273.点击**日文国际化**,将获取到的系统时间进行日文国际化,展示日文格式的日期。
28
29### 约束与限制
30
311.本示例仅支持在标准系统上运行。
32
332.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。