Update EditInstanceDetails admin component to support localization (#4439)
* Initial plan * Update EditInstanceDetails component to support localization Co-authored-by: gabek <414923+gabek@users.noreply.github.com> * chore: update extracted translations * Update web/types/localization.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Add EditInstanceDetails namespace to localization keys Co-authored-by: gabek <414923+gabek@users.noreply.github.com> * chore: update extracted translations --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: gabek <414923+gabek@users.noreply.github.com> Co-authored-by: Owncast default web localizations <owncast@owncast.online> Co-authored-by: Gabe Kangas <gabek@real-ity.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
gabek
Copilot
copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Owncast default web localizations
Gabe Kangas
parent
fb2905b082
commit
eafcf9148c
@@ -28,6 +28,8 @@ import { ToggleSwitch } from '../../ToggleSwitch';
|
||||
import { EditLogo } from '../../EditLogo';
|
||||
import FormStatusIndicator from '../../FormStatusIndicator';
|
||||
import { createInputStatus, STATUS_SUCCESS } from '../../../../utils/input-statuses';
|
||||
import { Translation } from '../../../ui/Translation/Translation';
|
||||
import { Localization } from '../../../../types/localization';
|
||||
|
||||
const { Title } = Typography;
|
||||
|
||||
@@ -248,8 +250,10 @@ export default function EditInstanceDetails() {
|
||||
/>
|
||||
</div>
|
||||
<div className="field-tip">
|
||||
The offline message is displayed to your page visitors when you're not streaming.
|
||||
Markdown is supported.
|
||||
<Translation
|
||||
translationKey={Localization.Admin.EditInstanceDetails.offlineMessageDescription}
|
||||
defaultText="The offline message is displayed to your page visitors when you're not streaming. Markdown is supported."
|
||||
/>
|
||||
</div>
|
||||
|
||||
<Button
|
||||
@@ -283,23 +287,17 @@ export default function EditInstanceDetails() {
|
||||
|
||||
<br />
|
||||
<p className="description">
|
||||
Increase your audience by appearing in the{' '}
|
||||
<a href="https://directory.owncast.online" target="_blank" rel="noreferrer">
|
||||
<strong>Owncast Directory</strong>
|
||||
</a>
|
||||
. This is an external service run by the Owncast project.{' '}
|
||||
<a
|
||||
href="https://owncast.online/docs/directory/?source=admin"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Learn more
|
||||
</a>
|
||||
.
|
||||
<Translation
|
||||
translationKey={Localization.Admin.EditInstanceDetails.directoryDescription}
|
||||
defaultText='Increase your audience by appearing in the <a href="https://directory.owncast.online" target="_blank" rel="noreferrer"><strong>Owncast Directory</strong></a>. This is an external service run by the Owncast project. <a href="https://owncast.online/docs/directory/?source=admin" target="_blank" rel="noopener noreferrer">Learn more</a>.'
|
||||
/>
|
||||
</p>
|
||||
{!yp.instanceUrl && (
|
||||
<p className="description">
|
||||
You must set your <strong>Server URL</strong> above to enable the directory.
|
||||
<Translation
|
||||
translationKey={Localization.Admin.EditInstanceDetails.serverUrlRequiredForDirectory}
|
||||
defaultText="You must set your <strong>Server URL</strong> above to enable the directory."
|
||||
/>
|
||||
</p>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user