updateFallbackLocale method

Future<void> updateFallbackLocale({
  1. required String fallbackLocale,
})

Updates the fallback locale in config.

Implementation

Future<void> updateFallbackLocale({
  required String fallbackLocale,
}) async {
  await _requestJson(
    'PATCH',
    '/api/catalog/config',
    body: <String, dynamic>{
      'fallbackLocale': fallbackLocale,
    },
  );
}