chore: remove Crowdin integration from release workflow and related constants

This commit is contained in:
kastov 2026-01-30 03:48:58 +03:00
parent 627df82f48
commit 82cb832615
No known key found for this signature in database
GPG key ID: 1B27BE29057F4C90
3 changed files with 1 additions and 30 deletions

View file

@ -66,31 +66,6 @@ jobs:
run: |
gh release upload dev-build remnawave-frontend.zip --clobber
- name: Build with Crowdin
env:
CROWDIN: 1
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_API_TOKEN: ${{ secrets.CROWDIN_API_TOKEN }}
run: |
npm run crowdin:download
npm run start:build
- name: Create ZIP archive of /dist
run: |
zip -r remnawave-frontend-loc.zip ./dist
- name: Remove previous ZIP from release (if exists)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release delete-asset dev-build remnawave-frontend-loc.zip || true
- name: Upload new ZIP to release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload dev-build remnawave-frontend-loc.zip --clobber
- name: Update release notes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

1
@types/client.d.ts vendored
View file

@ -1,4 +1,3 @@
declare const __DOMAIN_BACKEND__: string
declare const __NODE_ENV__: string
declare const __DOMAIN_OVERRIDE__: string
declare const __CROWDIN__: string

View file

@ -3,14 +3,11 @@ import { useTranslation } from 'react-i18next'
import { TbLanguage } from 'react-icons/tb'
import { useEffect } from 'react'
const isCrowdin = __CROWDIN__ === '1'
const data = [
{ label: 'English', emoji: '🇬🇧', value: 'en' },
{ label: 'Русский', emoji: '🇷🇺', value: 'ru' },
{ label: 'فارسی', emoji: '🇮🇷', value: 'fa' },
{ label: '简体中文', emoji: '🇨🇳', value: 'zh' },
...(isCrowdin ? [{ label: 'Crowdin', emoji: '🏴‍☠️', value: 'af' }] : [])
{ label: '简体中文', emoji: '🇨🇳', value: 'zh' }
]
export function LanguagePicker() {