Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,5 @@ FEATURE_INFRA_PROVISION_INFO_BLOCK_HIDE=false
FEATURE_FLUX_DEPLOYMENTS_ENABLE=false
FEATURE_LINK_EXTERNAL_FLUX_ENABLE=false
FEATURE_CANARY_ROLLOUT_PROGRESS_ENABLE=true
COMMAND_BAR_REFETCH_INTERVAL=3600
COMMAND_BAR_REFETCH_INTERVAL=3600
GOOGLE_API_KEY=
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"dompurify": "^3.2.4",
"fast-json-patch": "^3.1.1",
"jsonpath-plus": "^10.3.0",
"lingo.dev": "^0.117.4",
"moment": "^2.29.4",
"query-string": "^7.1.1",
"react": "^17.0.2",
Expand Down
2 changes: 2 additions & 0 deletions src/components/Navigation/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import { MouseEvent, useEffect, useMemo, useRef, useState } from 'react'
import { useLocation } from 'react-router-dom'
import { LocaleSwitcher } from 'lingo.dev/react/client'

Check failure on line 19 in src/components/Navigation/Navigation.tsx

View workflow job for this annotation

GitHub Actions / ci

Module '"lingo.dev/react/client"' has no exported member 'LocaleSwitcher'.

import {
AnimatePresence,
Expand Down Expand Up @@ -259,6 +260,7 @@
showTooltip
/>
)}
<LocaleSwitcher locales={['en', 'es', 'fr', 'de']} />
</nav>
<AnimatePresence>
{isExpanded && (
Expand Down
28 changes: 16 additions & 12 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
import * as Sentry from '@sentry/browser'
import { CaptureConsole } from '@sentry/integrations'
import { BrowserTracing } from '@sentry/tracing'
import { LingoProviderWrapper, loadDictionary } from 'lingo.dev/react/client'

Check failure on line 23 in src/index.tsx

View workflow job for this annotation

GitHub Actions / ci

Module '"lingo.dev/react/client"' has no exported member 'loadDictionary'.

Check failure on line 23 in src/index.tsx

View workflow job for this annotation

GitHub Actions / ci

Module '"lingo.dev/react/client"' has no exported member 'LingoProviderWrapper'.

import {
customEnv,
DevtronProgressing,
OverrideMergeStrategyType,
QueryClientProvider,
ThemeProvider,
Expand Down Expand Up @@ -187,18 +189,20 @@
ReactDOM.render(
<React.StrictMode>
{window.top === window.self ? (
<QueryClientProvider>
<ThemeProvider>
<BrowserRouter basename={window.__BASE_URL__}>
<UseRegisterShortcutProvider>
<UserEmailProvider>
<App />
</UserEmailProvider>
</UseRegisterShortcutProvider>
<ToastManagerContainer />
</BrowserRouter>
</ThemeProvider>
</QueryClientProvider>
<LingoProviderWrapper loadDictionary={(locale) => loadDictionary(locale)} fallback={<DevtronProgressing />}>
<QueryClientProvider>
<ThemeProvider>
<BrowserRouter basename={window.__BASE_URL__}>
<UseRegisterShortcutProvider>
<UserEmailProvider>
<App />
</UserEmailProvider>
</UseRegisterShortcutProvider>
<ToastManagerContainer />
</BrowserRouter>
</ThemeProvider>
</QueryClientProvider>
</LingoProviderWrapper>
) : null}
</React.StrictMode>,
root,
Expand Down
12,682 changes: 12,682 additions & 0 deletions src/lingo/dictionary.js

Large diffs are not rendered by default.

Loading
Loading