Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

fix(plugins): add missing permission translations

Gabe Kangasc158178fb12f
diff --git a/web/i18n/en/translation.json b/web/i18n/en/translation.json
index b14938ca86..2e2fbe46c5 100644
--- a/web/i18n/en/translation.json
+++ b/web/i18n/en/translation.json
@@ -248,6 +248,7 @@
"serverRead": "Read server state",
"storageFs": "Read and write files",
"storageKv": "Store data",
+ "storageSql": "Store data in a private SQLite database",
"storageUpload": "Upload files",
"uiModify": "Add UI elements",
"usersModerate": "Moderate users",
@@ -272,6 +273,7 @@
"serverRead": "Read Owncast configuration and current server state.",
"storageFs": "Read and write files in a private, server-side directory only this plugin can access.",
"storageKv": "Read and write a per-plugin key-value store that persists across reloads.",
+ "storageSql": "Read and write a private SQLite database that persists across reloads.",
"storageUpload": "Upload files to Owncast’s public files area for browser-accessible URLs.",
"uiModify": "Make changes to the Owncast user interface.",
"usersModerate": "Disable or re-enable chat users.",
@@ -319,7 +321,7 @@
"configSaveError": "Could not save settings.",
"configSaved": "Settings saved.",
"configTab": "Settings",
- "configure": "<strong><em>Missing translation Admin.Plugins.configure: Please report</em></strong>",
+ "configure": "Configure",
"descriptionColumnHeader": "Description",
"enabledColumn": "Enabled",
"errorTitle": "Plugin admin error",
diff --git a/web/tests/localization-keys.test.ts b/web/tests/localization-keys.test.ts
index c78a281fa9..d5ed535c1c 100644
--- a/web/tests/localization-keys.test.ts
+++ b/web/tests/localization-keys.test.ts
@@ -330,6 +330,18 @@ describe('Localization Keys Cross-Language Validation', () => {
},
];
+ test('should provide English text for plugin SQL storage and configuration', () => {
+ expect(
+ getNestedValue(englishTranslations, Localization.Admin.Plugins.PermissionNames.storageSql),
+ ).toBe('Store data in a private SQLite database');
+ expect(
+ getNestedValue(englishTranslations, Localization.Admin.Plugins.Permissions.storageSql),
+ ).toBe('Read and write a private SQLite database that persists across reloads.');
+ expect(getNestedValue(englishTranslations, Localization.Admin.Plugins.configure)).toBe(
+ 'Configure',
+ );
+ });
+
adminTestKeys.forEach(({ key, name }) => {
test(`should verify admin key "${name}" has appropriate translation structure`, () => {
const englishValue = getNestedValue(englishTranslations, key);