fix(#2352 and 2354): add bulgarian language and fix preview images

keep-around/4bd90cdb4bf101582086d98dbdf4c4eb60a8b7a5
Andrei Dekterev 4 years ago
parent acba57f22b
commit 4bd90cdb4b
  1. 5
      src/config/languages.tsx
  2. 1
      src/features/AuthServiceApp/components/LanguageSelect/styled.tsx
  3. 2
      src/features/MatchCard/CardFrontside/hooks.tsx
  4. 2
      src/react-app-env.d.ts

@ -59,6 +59,11 @@ export const langsList = [
locale: 'zh',
title: '中文',
},
{
className: 'bg',
locale: 'bg',
title: 'Български',
},
] as const
export type Languages = typeof langsList[number]['locale']

@ -115,6 +115,7 @@ type Position = {
}
const flagPositions: Record<LanguageFlags, Position> = {
bg: { col: 10, row: 1 },
cz: { col: 1, row: 3 },
de: { col: 5, row: 4 },
es: { col: 12, row: 10 },

@ -24,6 +24,8 @@ export const useCardPreview = ({
useEffect(() => {
(async () => {
if (!currentPreviewURL) return
const image = await fetch(String(currentPreviewURL), {
headers: {
Authorization: `Bearer ${readToken()}`,

@ -5,7 +5,7 @@ declare namespace NodeJS {
export interface ProcessEnv {
REACT_APP_CLIENT: 'instat' | 'facr',
REACT_APP_ENV: 'production' | 'preproduction' | 'staging',
REACT_APP_STAGE: 'staging' | 'a-staging' | 'b-staging' | 'c-staging' | 'd-staging',
REACT_APP_STAGE: 'staging' | 'a-staging' | 'b-staging' | 'c-staging' | 'd-staging' | 'e-staging',
REACT_APP_TYPE: 'auth-service' | 'ott',
}
}

Loading…
Cancel
Save