🌍 i18n: Refactor terms content structure and update paths for multi-language support

This commit is contained in:
Ruben Talstra 2025-03-10 18:27:13 +01:00
parent b7a6d7caa6
commit a88e99dcfb
No known key found for this signature in database
GPG key ID: 2A5A7174A60F3BEA
8 changed files with 8 additions and 6 deletions

View file

@ -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';

View file

@ -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';

View file

@ -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.

View file

@ -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

View file

@ -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