public class LocaleUtil
extends java.lang.Object
| Constructor and Description |
|---|
LocaleUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearMethodCaches() |
static java.util.Locale |
determineLocale(graphql.schema.DataFetchingEnvironment environment,
java.util.Locale defaultLocale)
This will try to determine the Locale from the data fetching env in a number of ways, searching
via the context and source objects and the data fetching environment itself.
|
public static java.util.Locale determineLocale(graphql.schema.DataFetchingEnvironment environment,
java.util.Locale defaultLocale)
environment - the fetching envdefaultLocale - the default to usepublic static void clearMethodCaches()