// APP

export const APP_NAME = import.meta.env.EVIBES_PROJECT_NAME

export const APP_NAME_KEY = APP_NAME.toLowerCase()



// LOCALES

export const SUPPORTED_LOCALES =             [
  {
    code: 'en-gb',
    default: true
  },
  {
    code: 'ar-ar',
    default: false
  },
  {
    code: 'cs-cz',
    default: false
  },
  {
    code: 'da-dk',
    default: false
  },
  {
    code: 'de-de',
    default: false
  },
  {
    code: 'en-us',
    default: false
  },
  {
    code: 'es-es',
    default: false
  },
  {
    code: 'fr-fr',
    default: false
  },
  {
    code: 'it-it',
    default: false
  },
  {
    code: 'ja-jp',
    default: false
  },
  {
    code: 'nl-nl',
    default: false
  },
  {
    code: 'pl-pl',
    default: false
  },
  {
    code: 'pt-br',
    default: false
  },
  {
    code: 'ro-ro',
    default: false
  },
  {
    code: 'ru-ru',
    default: false
  },
  {
    code: 'zh-hans',
    default: false
  }
]

export const DEFAULT_LOCALE = SUPPORTED_LOCALES.find(locale => locale.default)?.code || 'en-gb'



// LOCAL STORAGE

export const LOCALE_STORAGE_LOCALE_KEY = `${APP_NAME_KEY}-user-locale`;

export const LOCALE_STORAGE_REFRESH_TOKEN_KEY = `${APP_NAME_KEY}-refresh`;

export const LOCALE_STORAGE_ACCESS_TOKEN_KEY = `${APP_NAME_KEY}-access`;