mirror of
https://github.com/remnawave/frontend.git
synced 2026-05-13 12:16:40 +00:00
chore: remove Crowdin integration from release workflow and related constants
This commit is contained in:
parent
627df82f48
commit
82cb832615
3 changed files with 1 additions and 30 deletions
25
.github/workflows/release-dev.yml
vendored
25
.github/workflows/release-dev.yml
vendored
|
|
@ -66,31 +66,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
gh release upload dev-build remnawave-frontend.zip --clobber
|
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
|
- name: Update release notes
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
|
||||||
1
@types/client.d.ts
vendored
1
@types/client.d.ts
vendored
|
|
@ -1,4 +1,3 @@
|
||||||
declare const __DOMAIN_BACKEND__: string
|
declare const __DOMAIN_BACKEND__: string
|
||||||
declare const __NODE_ENV__: string
|
declare const __NODE_ENV__: string
|
||||||
declare const __DOMAIN_OVERRIDE__: string
|
declare const __DOMAIN_OVERRIDE__: string
|
||||||
declare const __CROWDIN__: string
|
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,11 @@ import { useTranslation } from 'react-i18next'
|
||||||
import { TbLanguage } from 'react-icons/tb'
|
import { TbLanguage } from 'react-icons/tb'
|
||||||
import { useEffect } from 'react'
|
import { useEffect } from 'react'
|
||||||
|
|
||||||
const isCrowdin = __CROWDIN__ === '1'
|
|
||||||
|
|
||||||
const data = [
|
const data = [
|
||||||
{ label: 'English', emoji: '🇬🇧', value: 'en' },
|
{ label: 'English', emoji: '🇬🇧', value: 'en' },
|
||||||
{ label: 'Русский', emoji: '🇷🇺', value: 'ru' },
|
{ label: 'Русский', emoji: '🇷🇺', value: 'ru' },
|
||||||
{ label: 'فارسی', emoji: '🇮🇷', value: 'fa' },
|
{ label: 'فارسی', emoji: '🇮🇷', value: 'fa' },
|
||||||
{ label: '简体中文', emoji: '🇨🇳', value: 'zh' },
|
{ label: '简体中文', emoji: '🇨🇳', value: 'zh' }
|
||||||
...(isCrowdin ? [{ label: 'Crowdin', emoji: '🏴☠️', value: 'af' }] : [])
|
|
||||||
]
|
]
|
||||||
|
|
||||||
export function LanguagePicker() {
|
export function LanguagePicker() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue