Skip to content

Commit

Permalink
Add Vietnamese locale (#23)
Browse files Browse the repository at this point in the history
* Add Vietnamese vi locale

* Add Vietnamese vi locale

* Add Vietnamese vi locale

Co-authored-by: Kris Luu <krisluu@Kriss-MacBook-Pro.local>
  • Loading branch information
Kris and Kris Luu authored Oct 12, 2020
1 parent cfbb443 commit 08dd489
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/simple_moment.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ export 'src/locales/pt_br.dart';
export 'src/locales/th.dart';
export 'src/locales/tr.dart';
export 'src/locales/nl.dart';
export 'src/locales/vi.dart';
export 'src/simple_moment_base.dart';
35 changes: 35 additions & 0 deletions lib/src/locales/vi.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// Copyright (c) 2016, rinukkusu. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

import '../localedata.dart';
import '../identifier_position.dart';

class LocaleVi implements ILocaleData {
final String _localeString;
String get localeString => _localeString;

LocaleVi([this._localeString = "vi"]);

String get seconds => 'vài giây';

String get aMinute => 'một phút';
String get minutes => '%i phút';

String get anHour => 'một giờ';
String get hours => '%i giờ';

String get aDay => 'một ngày';
String get days => '%i ngày';

String get aMonth => 'một tháng';
String get months => '%i tháng';

String get aYear => 'một năm';
String get years => '%i năm';

String get futureIdentifier => 'tới';
String get pastIdentifier => 'trước';

IdentifierPosition get futurePosition => IdentifierPosition.append;
IdentifierPosition get pastPosition => IdentifierPosition.append;
}

0 comments on commit 08dd489

Please sign in to comment.