Skip to content

Commit 7b13b54

Browse files
author
knoyo
committed
update: 更新README
1 parent 7010c30 commit 7b13b54

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,24 @@ import 'package:flutter_easyrefresh/material_footer.dart';
178178
)
179179
```
180180

181+
## 添加国际化支持
182+
```dart
183+
import 'package:flutter_easyrefresh/easy_refresh.dart';
184+
....
185+
new MaterialApp(
186+
localizationsDelegates: [
187+
GlobalEasyRefreshLocalizations.delegate,
188+
....
189+
],
190+
supportedLocales: [
191+
Locale("en", ""),
192+
Locale("zh", "CN"),
193+
....
194+
]
195+
....
196+
)
197+
```
198+
181199
# 捐赠
182200
如果你喜欢我的项目,请在项目右上角 "Star" 一下。你的支持是我最大的鼓励! ^_^
183201
你也还可以扫描下面的二维码,或者通过[![Donate to this project using Paypal](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=334PPRBZTY3J8&source=url),对作者进行打赏。

README_EN.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,24 @@ import 'package:flutter_easyrefresh/material_footer.dart';
178178
)
179179
```
180180

181+
## Add globalization support
182+
```dart
183+
import 'package:flutter_easyrefresh/easy_refresh.dart';
184+
....
185+
new MaterialApp(
186+
localizationsDelegates: [
187+
GlobalEasyRefreshLocalizations.delegate,
188+
....
189+
],
190+
supportedLocales: [
191+
Locale("en", ""),
192+
Locale("zh", "CN"),
193+
....
194+
]
195+
....
196+
)
197+
```
198+
181199
# Donation
182200
If you like my project, please in the upper right corner of the project "Star". Your support is my biggest encouragement! ^_^
183201
You can also scan the qr code below or [![Donate to this project using Paypal](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=334PPRBZTY3J8&source=url), donation to Author.

0 commit comments

Comments
 (0)