diff --git a/js/src/graphql/admin.ts b/js/src/graphql/admin.ts index b93624ebb..f6aa1978a 100644 --- a/js/src/graphql/admin.ts +++ b/js/src/graphql/admin.ts @@ -128,6 +128,15 @@ export const LANGUAGES = gql` } `; +export const LANGUAGES_CODES = gql` + query LanguagesCodes($codes: [String!]) { + languages(codes: $codes) { + code + name + } + } +`; + export const ADMIN_SETTINGS_FRAGMENT = gql` fragment adminSettingsFragment on AdminSettings { instanceName diff --git a/js/src/views/About/AboutInstance.vue b/js/src/views/About/AboutInstance.vue index fdad1e4d8..bd3139989 100644 --- a/js/src/views/About/AboutInstance.vue +++ b/js/src/views/About/AboutInstance.vue @@ -44,7 +44,7 @@
{{ $t("Instance languages") }} | -{{ formatList(config.languages.map((lang) => getLanguageNameForCode(lang))) }} | +{{ formattedLanguageList }} |
{{ $t("Mobilizon version") }} | @@ -78,6 +78,8 @@