Skip to content

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

Javascript formatting autofixes

Owncast49d6f79f506c
diff --git a/web/tests/translation.test.tsx b/web/tests/translation.test.tsx
index 85d8c88fa3..4d3be68b72 100644
--- a/web/tests/translation.test.tsx
+++ b/web/tests/translation.test.tsx
@@ -30,13 +30,10 @@ jest.mock('next-export-i18n', () => ({
if (!result && key.includes('.')) {
const [ns, k] = key.split('.');
// Try snake_case
- const snakeKey =
- ns +
- '.' +
- k
- .replace(/([A-Z])/g, '_$1')
- .toLowerCase()
- .replace(/^_/, '');
+ const snakeKey = `${ns}.${k
+ .replace(/([A-Z])/g, '_$1')
+ .toLowerCase()
+ .replace(/^_/, '')}`;
result = translations[snakeKey];
}