0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch.git synced 2024-12-22 05:12:57 -05:00

docker improvements

This commit is contained in:
dragongoose 2024-02-19 12:03:22 -05:00
parent 2d905e7c93
commit 9876a67a18
No known key found for this signature in database
GPG key ID: 01397EEC371CDAA5
2 changed files with 10 additions and 20 deletions

View file

@ -4,14 +4,14 @@ http {
server { server {
listen 8280; listen 8280;
access_log off; access_log /dev/null;
error_log off; error_log /dev/null;
location / { location / {
root /app; root /app;
index index.html; index index.html;
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
} }
} }
} }

View file

@ -15,23 +15,13 @@ import uk from '@/locales/uk.json'
import de from '@/locales/de.json' import de from '@/locales/de.json'
import zh_Hans from '@/locales/zh_Hans.json' import zh_Hans from '@/locales/zh_Hans.json'
let locale = import.meta.env.SAFETWITCH_DEFAULT_LOCALE || 'en-US'
const fallbackLocale = import.meta.env.SAFETWITCH_FALLBACK_LOCALE || 'en-US'
if (locale == 'en' ) {
locale = 'en-US'
}
if (fallbackLocale == 'en' ) {
locale = 'en-US'
}
export default createI18n({ export default createI18n({
legacy: false, legacy: false,
locale, locale: import.meta.env.SAFETWITCH_DEFAULT_LOCALE || 'en-US',
fallbackLocale, fallbackLocale: import.meta.env.SAFETWITCH_FALLBACK_LOCALE || 'en-US',
globalInjection: true, globalInjection: true,
messages: { messages: {
'en': en,
'en-US': en, 'en-US': en,
'es-ES': es, 'es-ES': es,
'nl-NL': nl, 'nl-NL': nl,