mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore(mobile): Capitalize Places cities in app (#2985)
This commit is contained in:
parent
de42ebf3d8
commit
053a5235be
3 changed files with 13 additions and 4 deletions
9
mobile/lib/utils/capitalize.dart
Normal file
9
mobile/lib/utils/capitalize.dart
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
extension StringExtension on String {
|
||||
String capitalize() {
|
||||
return this
|
||||
.split(" ")
|
||||
.map((str) =>
|
||||
str.isEmpty ? str : str[0].toUpperCase() + str.substring(1))
|
||||
.join(" ");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue