Skip to content

Commit

Permalink
Merge pull request #1908 from vector-im/t3chguy/localazy/2
Browse files Browse the repository at this point in the history
Switch from Weblate to Localazy
  • Loading branch information
robintown authored Nov 20, 2023
2 parents a31d1a5 + 70dbf95 commit aa8ef57
Show file tree
Hide file tree
Showing 68 changed files with 2,680 additions and 2,162 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/translations-download.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Download translation files from Localazy
on:
workflow_dispatch:
secrets:
ELEMENT_BOT_TOKEN:
required: true

jobs:
download:
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- name: Checkout the code
uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
cache: "yarn"

- name: Install Deps
run: "yarn install --frozen-lockfile"

- name: Prune i18n
run: "rm -R public/locales"

- name: Download translation files
uses: localazy/download@v1.1.0
with:
groups: "-p includeSourceLang:true"

- name: Fix the owner of the downloaded files
run: "sudo chown runner:docker -R public/locales"

- name: Prettier
run: yarn prettier:format

- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v5.0.2
with:
token: ${{ secrets.ELEMENT_BOT_TOKEN }}
branch: actions/localazy-download
delete-branch: true
title: Localazy Download
commit-message: Translations updates
labels: |
T-Task
- name: Enable automerge
run: gh pr merge --merge --auto "$PR_NUMBER"
if: steps.cpr.outputs.pull-request-operation == 'created'
env:
GH_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
PR_NUMBER: ${{ steps.cpr.outputs.pull-request-number }}
20 changes: 20 additions & 0 deletions .github/workflows/translations-upload.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Upload translation files to Localazy
on:
push:
branches:
- livekit

jobs:
upload:
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Upload
uses: localazy/upload@v1
with:
write_key: ${{ secrets.LOCALAZY_WRITE_KEY }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Element Call

[![Chat](https://img.shields.io/matrix/webrtc:matrix.org)](https://matrix.to/#/#webrtc:matrix.org)
[![Translate](https://translate.element.io/widgets/element-call/-/element-call/svg-badge.svg)](https://translate.element.io/engage/element-call/)
[![Localazy](https://img.shields.io/endpoint?url=https%3A%2F%2Fconnect.localazy.com%2Fstatus%2Felement-call%2Fdata%3Fcontent%3Dall%26title%3Dlocalazy%26logo%3Dtrue)](https://localazy.com/p/element-call)

Group calls with WebRTC that leverage [Matrix](https://matrix.org) and an open-source WebRTC toolkit from [LiveKit](https://livekit.io/).

Expand Down Expand Up @@ -56,7 +56,7 @@ There are currently two different config files. `.env` holds variables that are

## Translation

If you'd like to help translate Element Call, head over to [translate.element.io](https://translate.element.io/engage/element-call/). You're also encouraged to join the [Element Translators](https://matrix.to/#/#translators:element.io) space to discuss and coordinate translation efforts.
If you'd like to help translate Element Call, head over to [Localazy](https://localazy.com/p/element-call). You're also encouraged to join the [Element Translators](https://matrix.to/#/#translators:element.io) space to discuss and coordinate translation efforts.

## Development

Expand Down
4 changes: 1 addition & 3 deletions i18next-parser.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default {
keySeparator: false,
keySeparator: ".",
namespaceSeparator: false,
contextSeparator: "|",
pluralSeparator: "_",
Expand All @@ -25,6 +25,4 @@ export default {
output: "public/locales/$LOCALE/$NAMESPACE.json",
input: ["src/**/*.{ts,tsx}"],
sort: true,
// The key becomes the English version of the string
defaultValue: (_l, _ns, key) => key,
};
33 changes: 33 additions & 0 deletions localazy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"readKey": "a7580769542256117579-70975387172511848f4c6533943d776547bad4853931ba352ee684b738f4494e",

"upload": {
"type": "json",
"deprecate": "file",
"features": ["plural_postfix_us", "filter_untranslated"],
"files": [
{
"pattern": "public/locales/en-GB/*.json",
"lang": "inherited"
},
{
"group": "existing",
"pattern": "public/locales/*/*.json",
"excludes": ["public/locales/en-GB/*.json"],
"lang": "${autodetectLang}"
}
]
},

"download": {
"files": [
{
"output": "public/locales/${langLsrDash}/${file}"
}
],
"includeSourceLang": "${includeSourceLang|false}",
"langAliases": {
"en": "en_GB"
}
}
}
134 changes: 76 additions & 58 deletions public/locales/bg/app.json
Original file line number Diff line number Diff line change
@@ -1,60 +1,78 @@
{
"<0>Already have an account?</0><1><0>Log in</0> Or <2>Access as a guest</2></1>": "<0>Вече имате акаунт?</0><1><0>Влезте с него</0> или <2>Влезте като гост</2></1>",
"<0>Create an account</0> Or <2>Access as a guest</2>": "<0>Създайте акаунт</0> или <2>Влезте като гост</2>",
"<0>Why not finish by setting up a password to keep your account?</0><1>You'll be able to keep your name and set an avatar for use on future calls</1>": "<0>Защо не настройте парола за да запазите акаунта си?</0><1>Ще можете да запазите името и аватара си за бъдещи разговори</1>",
"Another user on this call is having an issue. In order to better diagnose these issues we'd like to collect a debug log.": "Друг потребител в този разговор има проблем. За да диагностицираме този проблем по-добре ни се иска да съберем debug логове.",
"Audio": "Звук",
"Avatar": "Аватар",
"Camera": "Камера",
"Close": "Затвори",
"Confirm password": "Потвърди паролата",
"Copied!": "Копирано!",
"Create account": "Създай акаунт",
"Debug log request": "Заявка за debug логове",
"Developer": "Разработчик",
"Display name": "Име/псевдоним",
"Exit full screen": "Излез от цял екран",
"Full screen": "Цял екран",
"Go": "Напред",
"Home": "Начало",
"Include debug logs": "Включи debug логове",
"Join call": "Влез в разговора",
"Join call now": "Влез в разговора сега",
"Join existing call?": "Присъединяване към съществуващ разговор?",
"Loading…": "Зареждане…",
"Local volume": "Локална сила на звука",
"Logging in…": "Влизане…",
"Login": "Влез",
"Login to your account": "Влезте в акаунта си",
"Microphone": "Микрофон",
"More": "Още",
"No": "Не",
"Not now, return to home screen": "Не сега, върни се на началния екран",
"Not registered yet? <2>Create an account</2>": "Все още не сте регистрирани? <2>Създайте акаунт</2>",
"Password": "Парола",
"Passwords must match": "Паролите не съвпадат",
"Profile": "Профил",
"Recaptcha dismissed": "Recaptcha отхвърлена",
"Recaptcha not loaded": "Recaptcha не е заредена",
"Register": "Регистрация",
"Registering…": "Регистриране…",
"Remove": "Премахни",
"Return to home screen": "Връщане на началния екран",
"Select an option": "Изберете опция",
"Send debug logs": "Изпратете debug логове",
"Sending…": "Изпращане…",
"Settings": "Настройки",
"Share screen": "Сподели екрана",
"Sign in": "Влез",
"Sign out": "Излез",
"Speaker": "Говорител",
"Spotlight": "Прожектор",
"Submit feedback": "Изпрати обратна връзка",
"This call already exists, would you like to join?": "Този разговор вече съществува, искате ли да се присъедините?",
"User menu": "Потребителско меню",
"Username": "Потребителско име",
"Version: {{version}}": "Версия: {{version}}",
"Video": "Видео",
"Waiting for other participants…": "Изчакване на други участници…",
"Yes, join call": "Да, присъедини се"
"a11y": {
"user_menu": "Потребителско меню"
},
"action": {
"close": "Затвори",
"go": "Напред",
"no": "Не",
"register": "Регистрация",
"remove": "Премахни",
"sign_in": "Влез",
"sign_out": "Излез"
},
"call_ended_view": {
"create_account_button": "Създай акаунт",
"create_account_prompt": "<0>Защо не настройте парола за да запазите акаунта си?</0><1>Ще можете да запазите името и аватара си за бъдещи разговори</1>",
"not_now_button": "Не сега, върни се на началния екран"
},
"common": {
"audio": "Звук",
"avatar": "Аватар",
"camera": "Камера",
"copied": "Копирано!",
"display_name": "Име/псевдоним",
"home": "Начало",
"loading": "Зареждане…",
"microphone": "Микрофон",
"password": "Парола",
"profile": "Профил",
"settings": "Настройки",
"username": "Потребителско име",
"video": "Видео"
},
"exit_fullscreen_button_label": "Излез от цял екран",
"fullscreen_button_label": "Цял екран",
"join_existing_call_modal": {
"join_button": "Да, присъедини се",
"text": "Този разговор вече съществува, искате ли да се присъедините?",
"title": "Присъединяване към съществуващ разговор?"
},
"layout_spotlight_label": "Прожектор",
"lobby": {
"join_button": "Влез в разговора"
},
"local_volume_label": "Локална сила на звука",
"logging_in": "Влизане…",
"login_auth_links": "<0>Създайте акаунт</0> или <2>Влезте като гост</2>",
"login_title": "Влез",
"rageshake_request_modal": {
"body": "Друг потребител в този разговор има проблем. За да диагностицираме този проблем по-добре ни се иска да съберем debug логове.",
"title": "Заявка за debug логове"
},
"rageshake_send_logs": "Изпратете debug логове",
"rageshake_sending": "Изпращане…",
"recaptcha_dismissed": "Recaptcha отхвърлена",
"recaptcha_not_loaded": "Recaptcha не е заредена",
"register": {
"passwords_must_match": "Паролите не съвпадат",
"registering": "Регистриране…"
},
"register_auth_links": "<0>Вече имате акаунт?</0><1><0>Влезте с него</0> или <2>Влезте като гост</2></1>",
"register_confirm_password_label": "Потвърди паролата",
"return_home_button": "Връщане на началния екран",
"room_auth_view_join_button": "Влез в разговора сега",
"screenshare_button_label": "Сподели екрана",
"select_input_unset_button": "Изберете опция",
"settings": {
"developer_tab_title": "Разработчик",
"feedback_tab_h4": "Изпрати обратна връзка",
"feedback_tab_send_logs_label": "Включи debug логове",
"more_tab_title": "Още",
"speaker_device_selection_label": "Говорител"
},
"unauthenticated_view_body": "Все още не сте регистрирани? <2>Създайте акаунт</2>",
"unauthenticated_view_login_button": "Влезте в акаунта си",
"version": "Версия: {{version}}",
"waiting_for_participants": "Изчакване на други участници…"
}
Loading

0 comments on commit aa8ef57

Please sign in to comment.