mirror of https://github.com/immich-app/immich.git
chore(mobile): Capitalize Places cities in app (#2985)
parent
de42ebf3d8
commit
053a5235be
@ -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…
Reference in New Issue