src/app/components/ThemeProvider/defaultServiceVariants.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
// This is to support local 404 and 500 pages for services with variants.
// For example, http://localhost:7080/serbian/500 does not include the variant in the path so we must define a default variant.

import { Variants } from '#app/models/types/global';

// NB These routes do not exist on live. They are for dev and testing purposes.
const defaultServiceVariants: { [index: string]: Variants } = {
  serbian: 'cyr',
  ukchina: 'simp',
  uzbek: 'cyr',
  zhongwen: 'simp',
};

export default defaultServiceVariants;