Skip to content
Open
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
10 changes: 5 additions & 5 deletions lib/src/locale/portuguese_br.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ class PortugueseBRDurationLanguage extends DurationLocale {

@override
String month(int amount, [bool abbreviated = true]) {
if (abbreviated) {
if (abbreviated || amount == 1) {
return 'mês';
} else {
return 'mês${amount > 1 ? 'es' : ''}';
return 'meses';
}
}

Expand All @@ -35,7 +35,7 @@ class PortugueseBRDurationLanguage extends DurationLocale {
if (abbreviated) {
return 'd';
} else {
return 'día${amount > 1 ? 's' : ''}';
return 'dia${amount > 1 ? 's' : ''}';
}
}

Expand Down Expand Up @@ -71,7 +71,7 @@ class PortugueseBRDurationLanguage extends DurationLocale {
if (abbreviated) {
return 'ms';
} else {
return 'milisegundo${amount > 1 ? 's' : ''}';
return 'milissegundo${amount > 1 ? 's' : ''}';
}
}

Expand All @@ -80,7 +80,7 @@ class PortugueseBRDurationLanguage extends DurationLocale {
if (abbreviated) {
return 'us';
} else {
return 'microsegundo${amount > 1 ? 's' : ''}';
return 'microssegundo${amount > 1 ? 's' : ''}';
}
}
}