-
Notifications
You must be signed in to change notification settings - Fork 173
Make compatible with other JVM Locales as for example turkish. #494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
capitalize() without Locale.ENGLISH leads to unexpected chars which are language specific
I'd maybe use |
capitalize() without Locale.ROOT leads to unexpected chars which are language specific
Seems to be the "better" approach, done |
src/main/kotlin/graphql/kickstart/tools/resolver/FieldResolverScanner.kt
Outdated
Show resolved
Hide resolved
src/test/kotlin/graphql/kickstart/tools/FieldResolverScannerTest.kt
Outdated
Show resolved
Hide resolved
capitalize() without Locale.ROOT leads to unexpected chars which are language specific Review changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use Locale.ROOT to avoid language specific capitalize effects
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution.
Is there anything to do for me? |
Looks like |
@janitza-bjag lets replace these with |
capitalize() without Locale.ROOT leads to unexpected chars which are language specific Review changes
capitalize() without Locale.ROOT leads to unexpected chars which are language specific Review changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
recommended changes applied
fun `scanner finds field resolver method using capitalize field_name`() { | ||
val resolver = RootResolverInfo(listOf(CapitalizeQuery()), options) | ||
|
||
val meta = scanner.findFieldResolver(FieldDefinition("id", TypeName("HullType")), resolver) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets make sure the test will fail on all machines by setting the default locale to Turkish Locale.forLanguageTag("tr-TR")
and resetting it back to default at the end.
And add a comment to explain why we do that please.
Closing this since we're unable to push/merge it as it is. Opened #565 with the same commits. |
capitalize() without Locale.ENGLISH leads to unexpected chars which are language specific
Checklist
Description