mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Custom localization (#2837)
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -408,6 +408,36 @@ export const SettingsInterfacePanel: React.FC = () => {
|
||||
}}
|
||||
/>
|
||||
</SettingSection>
|
||||
<SettingSection headingID="config.ui.custom_locales.heading">
|
||||
<BooleanSetting
|
||||
id="custom-locales-enabled"
|
||||
headingID="config.ui.custom_locales.option_label"
|
||||
checked={iface.customLocalesEnabled ?? undefined}
|
||||
onChange={(v) => saveInterface({ customLocalesEnabled: v })}
|
||||
/>
|
||||
|
||||
<ModalSetting<string>
|
||||
id="custom-locales"
|
||||
headingID="config.ui.custom_locales.heading"
|
||||
subHeadingID="config.ui.custom_locales.description"
|
||||
value={iface.customLocales ?? undefined}
|
||||
onChange={(v) => saveInterface({ customLocales: v })}
|
||||
renderField={(value, setValue) => (
|
||||
<Form.Control
|
||||
as="textarea"
|
||||
value={value}
|
||||
onChange={(e: React.ChangeEvent<HTMLTextAreaElement>) =>
|
||||
setValue(e.currentTarget.value)
|
||||
}
|
||||
rows={16}
|
||||
className="text-input code"
|
||||
/>
|
||||
)}
|
||||
renderValue={() => {
|
||||
return <></>;
|
||||
}}
|
||||
/>
|
||||
</SettingSection>
|
||||
|
||||
<SettingSection headingID="config.ui.interactive_options">
|
||||
<StringSetting
|
||||
|
||||
Reference in New Issue
Block a user