mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 09:50:15 +01:00
chore: Translation Fixes, Lint Error Corrections, and Additional Translations (#788)
* fix translation and small lint error * changed from localize to useLocalize hook * changed to useLocalize
This commit is contained in:
parent
b64cc71d88
commit
74802dd720
26 changed files with 421 additions and 421 deletions
|
|
@ -23,10 +23,10 @@ function PluginAuthForm({ plugin, onSubmit }: TPluginAuthFormProps) {
|
|||
className="col-span-1 flex w-full flex-col items-start justify-start gap-2"
|
||||
method="POST"
|
||||
onSubmit={handleSubmit((auth) =>
|
||||
onSubmit({ pluginKey: plugin!.pluginKey, action: 'install', auth }),
|
||||
onSubmit({ pluginKey: plugin?.pluginKey, action: 'install', auth }),
|
||||
)}
|
||||
>
|
||||
{plugin!.authConfig?.map((config: TPluginAuthConfig, i: number) => (
|
||||
{plugin?.authConfig?.map((config: TPluginAuthConfig, i: number) => (
|
||||
<div key={`${config.authField}-${i}`} className="flex w-full flex-col gap-1">
|
||||
<label
|
||||
htmlFor={config.authField}
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ function PluginStoreDialog({ isOpen, setIsOpen }: TPluginStoreDialogProps) {
|
|||
setSelectedPlugin(getAvailablePluginFromKey);
|
||||
|
||||
if (
|
||||
getAvailablePluginFromKey!.authConfig.length > 0 &&
|
||||
getAvailablePluginFromKey?.authConfig.length > 0 &&
|
||||
!getAvailablePluginFromKey?.authenticated
|
||||
) {
|
||||
setShowPluginAuthForm(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue