Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ Widget build(BuildContext context) {
....
```

### Formatting
### Examples
Get the result of formatting by using the class provided by flutter_ilib.

### Date Formatting

```dart
final ILibDateFmtOptions fmtOptions = ILibDateFmtOptions(
locale: 'ko-KR',
Expand Down Expand Up @@ -84,6 +86,8 @@ fmt.format(dateOptions);
// '2024년 6월 27일 오전 10:42'
```

### Duration Formatting

```dart
final ILibDurationFmtOptions fmtOptions =
ILibDurationFmtOptions(locale: 'en-GB', length: 'full');
Expand All @@ -105,6 +109,8 @@ fmt.format(dateOptions);
// '2 years, 2 months, 2 weeks, 2 days, 02:02'
```

### LocaleInfo

```dart
// 0:sun, 1:mon, 2:tue, 3:wed, 4:thu, 5:fri, 6:sat
final ILibLocaleInfo locInfo = ILibLocaleInfo('ko-KR');
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_ilib
description: "A wrapper plugin to conveniently use 'iLib' in Flutter app for internationalization. This plugin uses the 'flutter_js' to make the JavaScript file work properly in the Flutter app."
version: 1.4.0
version: 1.5.0
homepage: https://github.com/iLib-js/flutter_ilib
repository: https://github.com/iLib-js/flutter_ilib

Expand Down