You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Since variables move around in a sentence, it can become important to have letter casing to be specified by a message. If English puts a variable in the middle of a message and another language puts it at the beginning of a message, it may need the first letter upper cased. If you have optional data at the front of a message, you may need to optionally case the first letter of a sentence.
Describe the solution you'd like
We need a way to do the following:
Capitalize the first word of a span of text. Maybe this can be called sentence case.
Title case the variable
Lower case a variable (because the source English made a bad design choice)
Upper case a variable (I haven't seen this, but it might be needed)
Describe why your solution should shape the standard
Message formatting can't handle this type of localization issue right now.
Additional context or examples
source: The ${variable} is turned on
grammar of a target language: ${variable} is turned on
In that example, the result of the variable named "variable" would need the first letter upper cased.
The text was updated successfully, but these errors were encountered:
I am not aware of any language other than English doing title case.
Doing lowercase algorithmically is highly problematic (for example "WEISS" might lowercase to "weiss" or "weiß" or "Weiss" or "Weiß" depending on the meaning)
To the argument "because the source English made a bad design choice" I would say: file a bug, that is bad i18n.
We should not try to pass the responsibility of fixing i18n problems to localization (in tens of languages)
Is your feature request related to a problem? Please describe.
Since variables move around in a sentence, it can become important to have letter casing to be specified by a message. If English puts a variable in the middle of a message and another language puts it at the beginning of a message, it may need the first letter upper cased. If you have optional data at the front of a message, you may need to optionally case the first letter of a sentence.
Describe the solution you'd like
We need a way to do the following:
Describe why your solution should shape the standard
Message formatting can't handle this type of localization issue right now.
Additional context or examples
source: The ${variable} is turned on
grammar of a target language: ${variable} is turned on
In that example, the result of the variable named "variable" would need the first letter upper cased.
The text was updated successfully, but these errors were encountered: