Skip to content

Commit

Permalink
Added translations
Browse files Browse the repository at this point in the history
  • Loading branch information
KiselevAlexander committed Feb 11, 2025
1 parent 8e62acc commit d1aa040
Show file tree
Hide file tree
Showing 18 changed files with 95 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/API.cn.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# API 文档

要向 REST API v2 发送请求,您需要在每个请求中包含带有 Bearer 类型的 Authorization 头和令牌。

```
Authorization: Bearer {token}
```

## Inbounds

### 获取所有 Inbounds
Expand Down
6 changes: 6 additions & 0 deletions docs/API.en.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# API Documentation

To make requests to REST API v2, you need to include the Authorization header with the Bearer type and the token in each request.

```
Authorization: Bearer {token}
```

## Inbounds

### Get All Inbounds
Expand Down
6 changes: 6 additions & 0 deletions docs/API.es.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Documentación de la API

Para realizar solicitudes al REST API v2, es necesario incluir en cada solicitud el encabezado Authorization con el tipo Bearer y el token.

```
Authorization: Bearer {token}
```

## Inbounds

### Obtener todos los Inbounds
Expand Down
6 changes: 6 additions & 0 deletions docs/API.fa.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# مستندات API

برای انجام درخواست‌ها به REST API v2، در هر درخواست باید هدر Authorization با نوع Bearer و توکن ارسال شود.

```
Authorization: Bearer {token}
```

## ورودی‌ها (Inbounds)

### دریافت تمام ورودی‌ها
Expand Down
6 changes: 6 additions & 0 deletions docs/API.ru.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# API Documentation

Для выполнения запросов к REST API v2 в каждом запросе необходимо передавать заголовок Authorization с типом Bearer и указанием токена.

```
Authorization: Bearer {token}
```

## Inbounds

### Get All Inbounds
Expand Down
2 changes: 1 addition & 1 deletion web/controller/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func (a *SettingController) generateApiToken(c *gin.Context) {
return
}

jsonMsgObj(c, I18nWeb(c, "pages.settings.security.apiTokenGeneratedSuccessful"), response, nil)
jsonMsgObj(c, I18nWeb(c, "pages.settings.security.apiTokenGeneratedSuccess"), response, nil)
}

func (a *SettingController) removeApiToken(c *gin.Context) {
Expand Down
5 changes: 5 additions & 0 deletions web/translation/translate.en_US.toml
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,11 @@
"loginSecurityDesc" = "Adds an additional layer of authentication to provide more security."
"secretToken" = "Secret Token"
"secretTokenDesc" = "Please securely store this token in a safe place. This token is required for login and cannot be recovered."
"apiDescription" = "To make requests to REST API v2, you need to include the Authorization header with the Bearer type and the token in each request.\nExample: Authorization: Bearer {token}"
"apiGenerateToken" = "Generate token"
"apiTokenGeneratedSuccess" = "Token generated"
"apiConfirmRemoveTokenTitle" = "Confirm token deletion"
"apiConfirmRemoveTokenText" = "After deleting the token, access to the API will be unavailable, and making requests will no longer be possible."

[pages.settings.toasts]
"modifySettings" = "Modify Settings"
Expand Down
5 changes: 5 additions & 0 deletions web/translation/translate.es_ES.toml
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,11 @@
"loginSecurityDesc" = "Habilitar un paso adicional de seguridad para el inicio de sesión de usuarios."
"secretToken" = "Token Secreto"
"secretTokenDesc" = "Por favor, copia y guarda este token de forma segura en un lugar seguro. Este token es necesario para iniciar sesión y no se puede recuperar con la herramienta de comando x-ui."
"apiDescription" = "Para realizar solicitudes al REST API v2, es necesario incluir en cada solicitud el encabezado Authorization con el tipo Bearer y el token.\nEjemplo: Authorization: Bearer {token}"
"apiGenerateToken" = "Generar token"
"apiTokenGeneratedSuccess" = "Token generado con éxito"
"apiConfirmRemoveTokenTitle" = "Confirmar eliminación del token"
"apiConfirmRemoveTokenText" = "Después de eliminar el token, el acceso al API no estará disponible y no se podrán realizar solicitudes."

[pages.settings.toasts]
"modifySettings" = "Modificar Configuraciones "
Expand Down
5 changes: 5 additions & 0 deletions web/translation/translate.fa_IR.toml
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,11 @@
"loginSecurityDesc" = "یک لایه اضافی از احراز هویت برای ایجاد امنیت بیشتر اضافه می کند"
"secretToken" = "توکن مخفی"
"secretTokenDesc" = "لطفاً این توکن را در مکانی امن ذخیره کنید. این توکن برای ورود به سیستم مورد نیاز است و قابل بازیابی نیست"
"apiDescription" = "برای انجام درخواست‌ها به REST API v2، در هر درخواست باید هدر Authorization با نوع Bearer و توکن ارسال شود.\nمثال: Authorization: Bearer {token}"
"apiGenerateToken" = "توکن ایجاد کنید"
"apiTokenGeneratedSuccessful" = "توکن با موفقیت ایجاد شد"
"apiConfirmRemoveTokenTitle" = "تایید حذف توکن"
"apiConfirmRemoveTokenText" = "پس از حذف توکن، دسترسی به API غیرفعال می‌شود و انجام درخواست‌ها امکان‌پذیر نخواهد بود."

[pages.settings.toasts]
"modifySettings" = "ویرایش تنظیمات"
Expand Down
5 changes: 5 additions & 0 deletions web/translation/translate.id_ID.toml
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,11 @@
"loginSecurityDesc" = "Menambahkan lapisan otentikasi tambahan untuk memberikan keamanan lebih."
"secretToken" = "Token Rahasia"
"secretTokenDesc" = "Simpan token ini dengan aman di tempat yang aman. Token ini diperlukan untuk login dan tidak dapat dipulihkan."
"apiDescription" = "Untuk melakukan permintaan ke REST API v2, Anda perlu menyertakan header Authorization dengan tipe Bearer dan token di setiap permintaan.\nContoh: Authorization: Bearer {token}"
"apiGenerateToken" = "Buat token"
"apiTokenGeneratedSuccessful" = "Token berhasil dibuat"
"apiConfirmRemoveTokenTitle" = "Konfirmasi penghapusan token"
"apiConfirmRemoveTokenText" = "Setelah menghapus token, akses ke API akan tidak tersedia, dan permintaan tidak dapat dilakukan."

[pages.settings.toasts]
"modifySettings" = "Ubah Pengaturan"
Expand Down
5 changes: 5 additions & 0 deletions web/translation/translate.ja_JP.toml
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,11 @@
"loginSecurityDesc" = "追加の認証を追加してセキュリティを向上させる"
"secretToken" = "セキュリティトークン"
"secretTokenDesc" = "このトークンを安全な場所に保管してください。このトークンはログインに使用され、紛失すると回復できません。"
"apiDescription" = "REST API v2 にリクエストを送信するには、Authorization ヘッダーに Bearer タイプのトークンを含める必要があります。\n例: Authorization: Bearer {token}"
"apiGenerateToken" = "トークンを生成"
"apiTokenGeneratedSuccessful" = "トークンが正常に生成されました"
"apiConfirmRemoveTokenTitle" = "トークン削除の確認"
"apiConfirmRemoveTokenText" = "トークンを削除すると、API へのアクセスができなくなり、リクエストを送信できなくなります。"

[pages.settings.toasts]
"modifySettings" = "設定を変更"
Expand Down
5 changes: 5 additions & 0 deletions web/translation/translate.pt_BR.toml
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,11 @@
"loginSecurityDesc" = "Adiciona uma camada extra de autenticação para fornecer mais segurança."
"secretToken" = "Token Secreto"
"secretTokenDesc" = "Por favor, armazene este token em um local seguro. Este token é necessário para o login e não pode ser recuperado."
"apiDescription" = "Para fazer solicitações à REST API v2, você precisa incluir o cabeçalho Authorization com o tipo Bearer e o token em cada solicitação.\nExemplo: Authorization: Bearer {token}"
"apiGenerateToken" = "Gerar token"
"apiTokenGeneratedSuccessful" = "Token gerado com sucesso"
"apiConfirmRemoveTokenTitle" = "Confirmar exclusão do token"
"apiConfirmRemoveTokenText" = "Após excluir o token, o acesso à API não estará mais disponível e não será possível fazer solicitações."

[pages.settings.toasts]
"modifySettings" = "Modificar Configurações"
Expand Down
10 changes: 9 additions & 1 deletion web/translation/translate.ru_RU.toml
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,12 @@
"loginSecurityDesc" = "Включить дополнительные меры безопасности входа пользователя"
"secretToken" = "Секретный токен"
"secretTokenDesc" = "Пожалуйста, скопируйте и сохраните этот токен в безопасном месте. Этот токен необходим для входа в систему и не может быть восстановлен с помощью инструмента x-ui"
"apiTitle" = "REST API"
"apiDescription" = "Для выполнения запросов к REST API v2 в каждом запросе необходимо передавать заголовок Authorization с типом Bearer и указанием токена.\nПример: Authorization: Bearer {token}"
"apiGenerateToken" = "Сгенерировать токен"
"apiTokenGeneratedSuccess" = "Токен сгенерирован"
"apiConfirmRemoveTokenTitle" = "Подтвердите удаление токена"
"apiConfirmRemoveTokenText" = "После удаления токена доступ к API станет недоступным, и выполнение запросов будет невозможно."

[pages.settings.toasts]
"modifySettings" = "Изменение настроек"
Expand All @@ -454,6 +460,8 @@
"originalUserPassIncorrect" = "Неверное имя пользователя или пароль"
"userPassMustBeNotEmpty" = "Новое имя пользователя и новый пароль должны быть заполнены"



[tgbot]
"keyboardClosed" = "❌ Закрыта настраиваемая клавиатура!"
"noResult" = "❗ Нет результатов!"
Expand Down Expand Up @@ -592,4 +600,4 @@
"disableSuccess" = "✅ {{ .Email }}: Отключено успешно."
"askToAddUserId" = "Ваша конфигурация не найдена!\r\nПожалуйста, попросите администратора использовать ваш идентификатор пользователя Telegram в ваших конфигурациях.\r\n\r\nВаш идентификатор пользователя: <code>{{ .TgUserID }}</code>"
"chooseClient" = "Выберите пользователя для подключения {{ .Inbound }}"
"chooseInbound" = "Выберите подключение"
"chooseInbound" = "Выберите подключение"
5 changes: 5 additions & 0 deletions web/translation/translate.tr_TR.toml
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,11 @@
"loginSecurityDesc" = "Daha fazla güvenlik sağlamak için ek bir kimlik doğrulama katmanı ekler."
"secretToken" = "Gizli Anahtar"
"secretTokenDesc" = "Bu anahtarı güvenli bir yerde saklayın. Bu anahtar giriş için gereklidir ve geri alınamaz."
"apiDescription" = "REST API v2'ye istek gönderebilmek için, her isteğe Bearer türünde bir yetkilendirme (Authorization) başlığı ve token eklemeniz gerekir.\nÖrnek: Authorization: Bearer {token}"
"apiGenerateToken" = "Token oluştur"
"apiTokenGeneratedSuccessful" = "Token başarıyla oluşturuldu"
"apiConfirmRemoveTokenTitle" = "Token silme onayı"
"apiConfirmRemoveTokenText" = "Token silindikten sonra API erişimi mümkün olmayacak ve istek gönderilemeyecektir."

[pages.settings.toasts]
"modifySettings" = "Ayarları Değiştir"
Expand Down
5 changes: 5 additions & 0 deletions web/translation/translate.uk_UA.toml
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,11 @@
"loginSecurityDesc" = "Додає додатковий рівень автентифікації для забезпечення більшої безпеки."
"secretToken" = "Секретний маркер"
"secretTokenDesc" = "Будь ласка, надійно зберігайте цей маркер у безпечному місці. Цей маркер потрібен для входу, і його неможливо відновити."
"apiDescription" = "Щоб надсилати запити до REST API v2, вам потрібно додати заголовок Authorization із типом Bearer і токен у кожен запит.\nПриклад: Authorization: Bearer {token}"
"apiGenerateToken" = "Створити токен"
"apiTokenGeneratedSuccessful" = "Токен успішно створено"
"apiConfirmRemoveTokenTitle" = "Підтвердження видалення токена"
"apiConfirmRemoveTokenText" = "Після видалення токена доступ до API буде неможливим, і надсилати запити більше не вдасться."

[pages.settings.toasts]
"modifySettings" = "Змінити налаштування"
Expand Down
5 changes: 5 additions & 0 deletions web/translation/translate.vi_VN.toml
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,11 @@
"loginSecurityDesc" = "Bật bước bảo mật đăng nhập bổ sung cho người dùng"
"secretToken" = "Mã bí mật"
"secretTokenDesc" = "Vui lòng sao chép và lưu trữ mã này một cách an toàn ở nơi an toàn. Mã này cần thiết để đăng nhập và không thể phục hồi từ công cụ lệnh x-ui."
"apiDescription" = "Để gửi yêu cầu đến REST API v2, bạn cần bao gồm tiêu đề Authorization với loại Bearer và token trong mỗi yêu cầu.\nVí dụ: Authorization: Bearer {token}"
"apiGenerateToken" = "Tạo token"
"apiTokenGeneratedSuccessful" = "Token đã được tạo thành công"
"apiConfirmRemoveTokenTitle" = "Xác nhận xóa token"
"apiConfirmRemoveTokenText" = "Sau khi xóa token, quyền truy cập API sẽ không còn khả dụng và bạn sẽ không thể gửi yêu cầu nữa."

[pages.settings.toasts]
"modifySettings" = "Chỉnh sửa cài đặt "
Expand Down
5 changes: 5 additions & 0 deletions web/translation/translate.zh_CN.toml
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,11 @@
"loginSecurityDesc" = "添加额外的身份验证以提高安全性"
"secretToken" = "安全令牌"
"secretTokenDesc" = "请将此令牌存储在安全的地方。此令牌用于登录,丢失无法恢复。"
"apiDescription" = "要向 REST API v2 发送请求,您需要在每个请求中包含带有 Bearer 类型的 Authorization 头和令牌。\n示例: Authorization: Bearer {token}"
"apiGenerateToken" = "生成令牌"
"apiTokenGeneratedSuccessful" = "令牌生成成功"
"apiConfirmRemoveTokenTitle" = "确认删除令牌"
"apiConfirmRemoveTokenText" = "删除令牌后,将无法访问 API,并且无法再发送请求。"

[pages.settings.toasts]
"modifySettings" = "修改设置"
Expand Down
5 changes: 5 additions & 0 deletions web/translation/translate.zh_TW.toml
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,11 @@
"loginSecurityDesc" = "新增額外的身份驗證以提高安全性"
"secretToken" = "安全令牌"
"secretTokenDesc" = "請將此令牌儲存在安全的地方。此令牌用於登入,丟失無法恢復。"
"apiDescription" = "要向 REST API v2 發送請求,您需要在每個請求中包含帶有 Bearer 類型的 Authorization 標頭和權杖。\n示例: Authorization: Bearer {token}"
"apiGenerateToken" = "生成權杖"
"apiTokenGeneratedSuccessful" = "權杖生成成功"
"apiConfirmRemoveTokenTitle" = "確認刪除權杖"
"apiConfirmRemoveTokenText" = "刪除權杖後,將無法存取 API,並且無法再發送請求。"

[pages.settings.toasts]
"modifySettings" = "修改設定"
Expand Down

0 comments on commit d1aa040

Please sign in to comment.