Browse Source

Update configs

pull/3448/head
Gabe Kangas 2 years ago
parent
commit
3444a0f7b1
  1. 2
      .github/workflows/translations.yml
  2. 8
      crowdin.yml
  3. 10
      web/i18n/index.js
  4. 0
      web/i18n/strings.json
  5. 19
      web/i18n/translations.en.json
  6. 19
      web/i18n/translations.es.json
  7. 19
      web/i18n/translations.fr.json
  8. 19
      web/i18n/translations.sp.json
  9. 8
      web/i18next-parser.config.mjs

2
.github/workflows/translations.yml

@ -3,7 +3,7 @@ name: Translation job @@ -3,7 +3,7 @@ name: Translation job
on:
push:
paths:
- 'web/i18n/**'
- 'web/i18n/strings.json'
- 'crowdin.yml'
- '.github/workflows/translations.yml'
- 'web/i18next-parser.config.mjs'

8
crowdin.yml

@ -1,10 +1,10 @@ @@ -1,10 +1,10 @@
'pull_request_title': 'Translations update: %locale%'
'pull_request_title': 'Translations update'
'pull_request_labels': ['crowdin', 'i18n']
'commit_message': 'Updated translations for %locale%'
'commit_message': 'Updated translations'
files:
- source: /web/i18n/translations.en.json
translation: /web/i18n/translation.%locale%.json
- source: /web/i18n/strings.json
translation: /web/i18n/%two_letters_code%.json
project_id_env: CROWDIN_PROJECT_ID
api_token_env: CROWDIN_PERSONAL_TOKEN

10
web/i18n/index.js

@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
const en = require('./translations.en.json');
const de = require('./translations.de.json');
const fr = require('./translations.fr.json');
const sp = require('./translations.sp.json');
const en = require('./en-US.json');
const es = require('./es-ES.json');
const de = require('./de-DE.json');
const fr = require('./fr-FR.json');
const i18n = {
translations: {
en,
es,
de,
fr,
sp,
},
defaultLang: 'en',
useBrowserDefault: true,

0
web/i18n/translations.de.json → web/i18n/strings.json

19
web/i18n/translations.en.json

@ -1,19 +0,0 @@ @@ -1,19 +0,0 @@
{
"Notify": "Notify",
"Powered by Owncast": "Powered by Owncast",
"Documentation": "Documentation",
"Contribute": "Contribute",
"Source": "Source",
"Skip to player": "Skip to player",
"Skip to offline message": "Skip to offline message",
"Skip to page content": "Skip to page content",
"Skip to footer": "Skip to footer",
"Chat is offline": "Chat is offline",
"Stay updated!": "Stay updated!",
"Click and never miss future streams!": "Click and never miss future streams!",
"This stream is offline": "This stream is offline.",
"the next time goes live": "the next time goes live",
"Follow": "Follow",
"on the Fediverse to see the next time goes live": "on the Fediverse to see the next time goes live",
"Last live ago": "Last live ago"
}

19
web/i18n/translations.es.json

@ -1,19 +0,0 @@ @@ -1,19 +0,0 @@
{
"Notify": "Notify",
"Powered by Owncast": "Powered by Owncast",
"Documentation": "Documentation",
"Contribute": "Contribute",
"Source": "Source",
"Skip to player": "Skip to player",
"Skip to offline message": "Skip to offline message",
"Skip to page content": "Skip to page content",
"Skip to footer": "Skip to footer",
"Chat is offline": "Chat is offline",
"Stay updated!": "Stay updated!",
"Click and never miss future streams!": "Click and never miss future streams!",
"This stream is offline": "This stream is offline.",
"the next time goes live": "the next time goes live",
"Follow": "Follow",
"on the Fediverse to see the next time goes live": "on the Fediverse to see the next time goes live",
"Last live ago": "Last live ago"
}

19
web/i18n/translations.fr.json

@ -1,19 +0,0 @@ @@ -1,19 +0,0 @@
{
"Notify": "Notify",
"Powered by Owncast": "Powered by Owncast",
"Documentation": "Documentation",
"Contribute": "Contribute",
"Source": "Source",
"Skip to player": "Skip to player",
"Skip to offline message": "Skip to offline message",
"Skip to page content": "Skip to page content",
"Skip to footer": "Skip to footer",
"Chat is offline": "Chat is offline",
"Stay updated!": "Stay updated!",
"Click and never miss future streams!": "Click and never miss future streams!",
"This stream is offline": "This stream is offline.",
"the next time goes live": "the next time goes live",
"Follow": "Follow",
"on the Fediverse to see the next time goes live": "on the Fediverse to see the next time goes live",
"Last live ago": "Last live ago"
}

19
web/i18n/translations.sp.json

@ -1,19 +0,0 @@ @@ -1,19 +0,0 @@
{
"Notify": "Notify",
"Powered by Owncast": "Powered by Owncast",
"Documentation": "Documentation",
"Contribute": "Contribute",
"Source": "Source",
"Skip to player": "Skip to player",
"Skip to offline message": "Skip to offline message",
"Skip to page content": "Skip to page content",
"Skip to footer": "Skip to footer",
"Chat is offline": "Chat is offline",
"Stay updated!": "Stay updated!",
"Click and never miss future streams!": "Click and never miss future streams!",
"This stream is offline": "This stream is offline.",
"the next time goes live": "the next time goes live",
"Follow": "Follow",
"on the Fediverse to see the next time goes live": "on the Fediverse to see the next time goes live",
"Last live ago": "Last live ago"
}

8
web/i18next-parser.config.mjs

@ -4,7 +4,7 @@ export default { @@ -4,7 +4,7 @@ export default {
contextSeparator: '_',
// Key separator used in your translation keys
createOldCatalogs: false,
createOldCatalogs: true,
// Save the \_old files
defaultNamespace: 'translation',
@ -48,14 +48,14 @@ export default { @@ -48,14 +48,14 @@ export default {
lineEnding: 'auto',
// Control the line ending. See options at https://github.com/ryanve/eol
locales: ['en', 'fr', 'es', 'sp', 'de'],
locales: ['en'],
// An array of the locales in your applications
namespaceSeparator: ':',
// Namespace separator used in your translation keys
// If you want to use plain english keys, separators such as `.` and `:` will conflict. You might want to set `keySeparator: false` and `namespaceSeparator: false`. That way, `t('Status: Loading...')` will not think that there are a namespace and three separator dots for instance.
output: 'i18n/translations.$LOCALE.json',
output: 'i18n/strings.json',
// Supports $LOCALE and $NAMESPACE injection
// Supports JSON (.json) and YAML (.yml) file formats
// Where to write the locale files relative to process.cwd()
@ -98,7 +98,7 @@ export default { @@ -98,7 +98,7 @@ export default {
// for that key across locales are reset to the default value, and existing translations are moved to
// the `_old` file.
i18nextOptions: { returnDetails: true, lng: '$LOCALE' },
// i18nextOptions: { returnDetails: true, lng: '$LOCALE' },
// If you wish to customize options in internally used i18next instance, you can define an object with any
// configuration property supported by i18next (https://www.i18next.com/overview/configuration-options).
// { compatibilityJSON: 'v3' } can be used to generate v3 compatible plurals.

Loading…
Cancel
Save