diff --git a/README.md b/README.md index 0189e98..0d06516 100644 --- a/README.md +++ b/README.md @@ -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', @@ -84,6 +86,8 @@ fmt.format(dateOptions); // '2024년 6월 27일 오전 10:42' ``` +### Duration Formatting + ```dart final ILibDurationFmtOptions fmtOptions = ILibDurationFmtOptions(locale: 'en-GB', length: 'full'); @@ -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'); diff --git a/pubspec.yaml b/pubspec.yaml index 8021855..4d5e0f8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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