Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: added translation for the conversation history dropdown #972

Merged
merged 1 commit into from
May 29, 2024
Merged
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
9 changes: 8 additions & 1 deletion frontend/src/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,14 @@
"prompt": "Active Prompt",
"deleteAllLabel": "Delete all Conversation",
"deleteAllBtn": "Delete all",
"addNew": "Add New"
"addNew": "Add New",
"convHistory":"Conversational history",
"none":"None",
"low":"Low",
"medium":"Medium",
"high":"High",
"unlimited":"Unlimited",
"default":"default"
},
"documents": {
"label": "Documents",
Expand Down
9 changes: 8 additions & 1 deletion frontend/src/locale/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,14 @@
"prompt": "Prompt Activo",
"deleteAllLabel": "Eliminar toda la Conversación",
"deleteAllBtn": "Eliminar todo",
"addNew": "Agregar Nuevo"
"addNew": "Agregar Nuevo",
"convHistory":"Historia conversacional",
"none":"ninguno",
"low":"Bajo",
"medium":"Medio",
"high":"Alto",
"unlimited":"Ilimitado",
"default":"predeterminada"
},
"documents": {
"label": "Documentos",
Expand Down
14 changes: 7 additions & 7 deletions frontend/src/settings/General.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ const General: React.FC = () => {
];
const chunks = ['0', '2', '4', '6', '8', '10'];
const token_limits = new Map([
[0, 'None'],
[100, 'Low'],
[1000, 'Medium'],
[2000, 'Default'],
[4000, 'High'],
[1e9, 'Unlimited'],
[0, t('settings.general.none')],
[100, t('settings.general.low')],
[1000, t('settings.general.medium')],
[2000, t('settings.general.default')],
[4000, t('settings.general.high')],
[1e9, t('settings.general.unlimited')],
]);
const [prompts, setPrompts] = React.useState<
{ name: string; id: string; type: string }[]
Expand Down Expand Up @@ -126,7 +126,7 @@ const General: React.FC = () => {
</div>
<div className="mb-5">
<p className="mb-2 font-bold text-jet dark:text-bright-gray">
Conversational history
{t('settings.general.convHistory')}
</p>
<Dropdown
options={Array.from(token_limits, ([value, desc]) => ({
Expand Down
Loading