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
6 changes: 3 additions & 3 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -561,9 +561,9 @@ Usage: discloud user info [arguments]
Set your locale

Usage: discloud user locale [arguments]
-h, --help Print this usage information.
-l, --locale=<en_US>
-s, --system Use current system language (en_US)
-h, --help Print this usage information.
-l, --locale=<en_US> (mandatory)
-s, --system Use current system language (en_US)
```

### zip
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/user/locale.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "package:discloud/utils/messages.dart";
final class UserLocaleCommand extends Command<void> {
UserLocaleCommand() {
argParser
..addOption("locale", abbr: "l", valueHelp: localeName)
..addOption("locale", abbr: "l", mandatory: true, valueHelp: localeName)
..addFlag(
"system",
abbr: "s",
Expand Down
2 changes: 1 addition & 1 deletion lib/extensions/duration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ extension DurationExtension on Duration {
static final DurationLocale _durationLocale =
.fromLanguageCode(Platform.localeName) ??
.fromLanguageCode(Intl.shortLocale(Platform.localeName)) ??
const EnglishDurationLocale();
englishLocale;

String pretty({
bool abbreviated = true,
Expand Down