mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-27 21:58:51 +01:00
🌍 i18n: Refactor terms content structure and update paths for multi-language support
This commit is contained in:
parent
b7a6d7caa6
commit
a88e99dcfb
8 changed files with 8 additions and 6 deletions
|
|
@ -11,9 +11,9 @@ import {
|
|||
import { useAuthContext, useAssistantsMap, useAgentsMap, useFileMap, useSearch } from '~/hooks';
|
||||
import TermsAndConditionsModal from '~/components/ui/TermsAndConditionsModal';
|
||||
import { useUserTermsQuery, useGetStartupConfig } from '~/data-provider';
|
||||
import { getTermsMarkdown } from '~/terms/termsContent';
|
||||
import { Nav, MobileNav } from '~/components/Nav';
|
||||
import { Banner } from '~/components/Banners';
|
||||
import { getTermsMarkdown } from '~/utils';
|
||||
import { useRecoilValue } from 'recoil';
|
||||
import store from '~/store';
|
||||
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ export * from './languages';
|
|||
export * from './endpoints';
|
||||
export * from './localStorage';
|
||||
export * from './promptGroups';
|
||||
export * from './termsContent';
|
||||
export { default as cn } from './cn';
|
||||
export { default as logger } from './logger';
|
||||
export { default as buildTree } from './buildTree';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import terms_en from './terms_en.md?raw';
|
||||
import terms_de from './terms_de.md?raw';
|
||||
import terms_fr from './terms_fr.md?raw';
|
||||
import terms_en from '../../../terms/terms_en.md?raw';
|
||||
import terms_de from '../../../terms/terms_de.md?raw';
|
||||
import terms_fr from '../../../terms/terms_fr.md?raw';
|
||||
|
||||
/**
|
||||
* A mapping of language codes to their respective terms markdown content.
|
||||
|
|
@ -13,7 +13,7 @@ services:
|
|||
- rag_api
|
||||
restart: always
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
- "host.docker.internal:host-gateway"
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
|
|
@ -30,7 +30,7 @@ services:
|
|||
- ./images:/app/client/public/images
|
||||
- ./uploads:/app/uploads
|
||||
- ./logs:/app/api/logs
|
||||
|
||||
- ./terms:/app/terms
|
||||
client:
|
||||
image: nginx:1.27.0-alpine
|
||||
container_name: LibreChat-NGINX
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ services:
|
|||
- ./images:/app/client/public/images
|
||||
- ./uploads:/app/uploads
|
||||
- ./logs:/app/api/logs
|
||||
- ./terms:/app/terms
|
||||
mongodb:
|
||||
container_name: chat-mongodb
|
||||
image: mongo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue