Allow to change language

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-06-16 18:00:27 +02:00
parent 08b4fb9b08
commit 5cb3f478ae
8 changed files with 110 additions and 9 deletions

View File

@@ -106,6 +106,7 @@ export const USER_SETTINGS_FRAGMENT = gql`
export const USER_SETTINGS = gql`
query UserSetting {
loggedUser {
locale
settings {
...UserSettingFragment
}
@@ -189,3 +190,12 @@ export const GET_USER = gql`
}
}
`;
export const UPDATE_USER_LOCALE = gql`
mutation UpdateUserLocale($locale: String!) {
updateLocale(locale: $locale) {
id
locale
}
}
`;