Use default locale for capitalisation in UI strings (use ROOT for IDs/Hashes for consistency)
This commit is contained in:
@@ -228,7 +228,7 @@ fun LongCommunityHeader(
|
|||||||
Text(
|
Text(
|
||||||
text =
|
text =
|
||||||
it1.replaceFirstChar {
|
it1.replaceFirstChar {
|
||||||
if (it.isLowerCase()) it.titlecase(Locale.ROOT) else it.toString()
|
if (it.isLowerCase()) it.titlecase(Locale.getDefault()) else it.toString()
|
||||||
},
|
},
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
overflow = TextOverflow.Ellipsis,
|
overflow = TextOverflow.Ellipsis,
|
||||||
|
|||||||
@@ -264,7 +264,7 @@ fun RenderLiveActivityEventInner(
|
|||||||
Text(
|
Text(
|
||||||
text =
|
text =
|
||||||
it.replaceFirstChar {
|
it.replaceFirstChar {
|
||||||
if (it.isLowerCase()) it.titlecase(Locale.ROOT) else it.toString()
|
if (it.isLowerCase()) it.titlecase(Locale.getDefault()) else it.toString()
|
||||||
},
|
},
|
||||||
color = MaterialTheme.colorScheme.placeholderText,
|
color = MaterialTheme.colorScheme.placeholderText,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
|
|||||||
+1
-1
@@ -183,7 +183,7 @@ fun LongLiveActivityChannelHeader(
|
|||||||
Text(
|
Text(
|
||||||
text =
|
text =
|
||||||
it1.replaceFirstChar {
|
it1.replaceFirstChar {
|
||||||
if (it.isLowerCase()) it.titlecase(Locale.ROOT) else it.toString()
|
if (it.isLowerCase()) it.titlecase(Locale.getDefault()) else it.toString()
|
||||||
},
|
},
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
overflow = TextOverflow.Ellipsis,
|
overflow = TextOverflow.Ellipsis,
|
||||||
|
|||||||
Reference in New Issue
Block a user