-
Hosted Options
-
For users who want to run Invoke on a hosted GPU service instead of their own hardware.
+
{t('download.hosted.heading')}
+
{t('download.hosted.description')}
{
diff --git a/docs/src/lib/components/EditLink.astro b/docs/src/lib/components/EditLink.astro
new file mode 100644
index 00000000000..943f70b60e1
--- /dev/null
+++ b/docs/src/lib/components/EditLink.astro
@@ -0,0 +1,32 @@
+---
+import { Icon } from '@astrojs/starlight/components';
+
+const crowdinProjectUrl = 'https://crowdin.com/project/invoke';
+const { editUrl, locale } = Astro.locals.starlightRoute;
+const href = locale ? crowdinProjectUrl : editUrl;
+const label = locale ? Astro.locals.t('page.translateLink') : Astro.locals.t('page.editLink');
+---
+
+{
+ href && (
+
+
+ {label}
+
+ )
+}
+
+
diff --git a/docs/src/lib/components/Footer.astro b/docs/src/lib/components/Footer.astro
index 65137dec3b9..00c21017db4 100644
--- a/docs/src/lib/components/Footer.astro
+++ b/docs/src/lib/components/Footer.astro
@@ -5,7 +5,7 @@ import PageFooter from '@astrojs/starlight/components/Footer.astro';
+
+{
+ locale && (
+
+ )
+}
diff --git a/docs/src/lib/components/SettingsDocs.astro b/docs/src/lib/components/SettingsDocs.astro
index c539b27cd46..e1c9e2c9d6e 100644
--- a/docs/src/lib/components/SettingsDocs.astro
+++ b/docs/src/lib/components/SettingsDocs.astro
@@ -1,6 +1,8 @@
---
import settingsData from '../../generated/settings.json';
+const t = Astro.locals.t;
+
const groupedSettings = Object.entries(
settingsData.settings.reduce((groups, setting) => {
const category = setting.category || 'OTHER';
@@ -62,15 +64,15 @@ const formatCategoryName = (category) => {
- Type
+ {t('settings.type')}
{formatType(setting.type)}
- Default
+ {t('settings.default')}
{formatValue(setting.default)}
- Env
+ {t('settings.environment')}
{setting.env_var}
@@ -78,7 +80,7 @@ const formatCategoryName = (category) => {
{setting.description}
{setting.literal_values.length > 0 && (
- Values: {setting.literal_values.map((v) => {formatValue(v)}).reduce((prev, curr) => [prev, ' ', curr])}
+ {t('settings.values')} {setting.literal_values.map((v) => {formatValue(v)}).reduce((prev, curr) => [prev, ' ', curr])}
)}
{Object.keys(setting.validation).length > 0 && (
diff --git a/docs/src/lib/components/SystemRequirmentsLink.astro b/docs/src/lib/components/SystemRequirmentsLink.astro
index 16455b8e749..64821d35862 100644
--- a/docs/src/lib/components/SystemRequirmentsLink.astro
+++ b/docs/src/lib/components/SystemRequirmentsLink.astro
@@ -1,10 +1,18 @@
---
import { LinkCard } from '@astrojs/starlight/components';
-import { withBase } from '../base-path';
+import { localizePath, withBase } from '../base-path';
+
+let locale: string | undefined;
+try {
+ locale = Astro.locals.starlightRoute.locale;
+} catch {
+ // Content is also rendered outside a Starlight route when generating llms-full.txt.
+ locale = undefined;
+}
---