Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next: v3 is on the horizon #92

Draft
wants to merge 178 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
178 commits
Select commit Hold shift + click to select a range
56dfd7e
[add] base translation website
Animenosekai Jun 4, 2022
bd58a33
[add] adding a `as_dict` method to each result model [update] using `…
Animenosekai Jun 5, 2022
2a24721
[skip CI] [fix] fixing an issue with `PARAM_FOREIGN`
Animenosekai Jun 5, 2022
48663f9
[fix] updating language data for x.scope -> x.s
Animenosekai Jun 5, 2022
fedef56
[skip ci] [update] optimize camelCase transformation
Animenosekai Jun 5, 2022
649c12d
[skip ci] update docs
Animenosekai Jun 5, 2022
d232fad
[skip ci] update docs
Animenosekai Jun 5, 2022
bff9caf
[skip ci] using real data
Animenosekai Jun 5, 2022
d983dff
[skip ci] [update] setting localization
Animenosekai Jun 5, 2022
8436ab6
[update] use `ui-language` [update] actually using `Translate` button
Animenosekai Jun 5, 2022
0c34456
[update] handle `Enter` on home page
Animenosekai Jun 5, 2022
7cf647e
[add] adding tts
Animenosekai Jun 5, 2022
9ba068c
[update] trying to avoid full reload of page when translating somethi…
Animenosekai Jun 5, 2022
8d76925
[fix] fix a little issue with the languages not updating on the UI
Animenosekai Jun 5, 2022
a4d8e82
[add] adding spanish localization [update] using current language's l…
Animenosekai Jun 5, 2022
18616a4
[update] using correct server domain [update] using Heroku port
Animenosekai Jun 5, 2022
fd64ab7
[update] using correct host
Animenosekai Jun 5, 2022
0fd25b7
[add] copy text
Animenosekai Jun 5, 2022
6e0c0de
[update] changing favicon
Animenosekai Jun 5, 2022
f1e5f6c
[update] put failed results at the end
Animenosekai Jun 5, 2022
3291280
[update] adapt chevron position according to language name
Animenosekai Jun 5, 2022
faa0508
[update] handling huge texts
Animenosekai Jun 5, 2022
4a170a1
[fix] fixing some translations [add] adding the automatic language el…
Animenosekai Jun 6, 2022
66b2f1b
[fix] fixing build error with missing field
Animenosekai Jun 6, 2022
55dcaa0
[update] responsive navbar [update] footer to the bottom
Animenosekai Jun 6, 2022
ba14ab9
[fix] adding classnames dependency
Animenosekai Jun 6, 2022
7288f2b
[update] use translate instead of right for mobile nav
Animenosekai Jun 6, 2022
554712f
[update] fixing a UI bug on mobile
Animenosekai Jun 6, 2022
3e3db01
[update] trying to fix position problem of mobile nav
Animenosekai Jun 6, 2022
f961d80
[update] adding a transition when closing the menu on mobile [update]…
Animenosekai Jun 6, 2022
7b99961
[add] adding favicon and manifest.json
Animenosekai Jun 7, 2022
09ba255
[add] addding a copy notification
Animenosekai Jun 7, 2022
6f1de07
[add] localizing clipboard notification
Animenosekai Jun 7, 2022
44f7320
[update] SEO improvements
Animenosekai Jun 8, 2022
cf77571
[add] adding spellchecking
Animenosekai Jun 8, 2022
0a2f943
[update] removing unused data.json
Animenosekai Jun 8, 2022
96abd5e
[readme] documenting the website folder
Animenosekai Jun 8, 2022
6034481
[update] use Nasse responses to optimize time and make the endpoints …
Animenosekai Jun 8, 2022
556a91f
[add] adding schemas for the db [add] adding translatepy version head…
Animenosekai Jun 16, 2022
624eeff
[update] working db
Animenosekai Jun 17, 2022
424e9ed
[add] adding stars endpoints
Animenosekai Jun 18, 2022
7cbcf9e
[fix] fixing stars
Animenosekai Jun 18, 2022
741286e
[add] adding stars to the website [fix] fixing lots of issues with stars
Animenosekai Jun 18, 2022
1653f8a
[add] add stats endpoints [add] adding stats page [add] base chart [a…
Animenosekai Jun 19, 2022
50b6cb9
[add] adding a yLabel to the charts [add] adding units to the charts …
Animenosekai Jun 19, 2022
276a199
[update] throttle spellchecking
Animenosekai Jun 19, 2022
a1c6b5f
[docs] adding python docs
Animenosekai Jun 24, 2022
13b3a29
[add] adding the CLI docs [update] using the `as_dict` methods in the…
Animenosekai Jun 25, 2022
5b83145
Merge branch 'main' into website
Animenosekai Jun 25, 2022
2c008ee
[update] using github version
Animenosekai Jun 25, 2022
b3f39fc
[update] preparing for localization
Animenosekai Jun 25, 2022
46e6209
[add] starting to add french docs localization
Animenosekai Jun 25, 2022
c649205
[add] adding localized docs
Animenosekai Jun 25, 2022
b810f5c
[add] working docs
Animenosekai Jun 25, 2022
59d190e
[update] updating the docs
Animenosekai Jun 25, 2022
063718e
[add] styling tables in docs [add] adding redirects to docs
Animenosekai Jun 25, 2022
85ed08a
[update] sticky toc [update] adding title and description for pages
Animenosekai Jun 26, 2022
b714f48
[update] make <a> tags after <Link> [update] add support for base pat…
Animenosekai Jun 26, 2022
bbfcd4b
[add] adding the Colorful element
Animenosekai Jun 26, 2022
b87145d
[update] updating some components
Animenosekai Jun 27, 2022
f507f1a
[update] docs responsiveness
Animenosekai Jun 27, 2022
d827614
[update] update TOC styling a bit
Animenosekai Jun 27, 2022
841ee02
[update] using a headings registry [update] improve ux for links in docs
Animenosekai Jun 27, 2022
f1c9a3d
[update] updating the API docs
Animenosekai Jun 28, 2022
d887610
[update] updating docs tree in website localizations
Animenosekai Jun 28, 2022
3b24a9f
[update] fixing typos in docs
Animenosekai Jun 28, 2022
726c3b0
[update] improve links adaptation
Animenosekai Jun 28, 2022
c0ab259
[add] adding missing docs files
Animenosekai Jun 28, 2022
31c6a11
[update] updating the commit hash for the docs
Animenosekai Jun 28, 2022
67fa8aa
[debug] starting to reverse engineering google translate X-Goog-Batch…
Animenosekai Jul 22, 2022
9ac6edd
add: integrating new size based LRU cache & separate the cache instan…
ZhymabekRoman Jan 24, 2023
f125fd5
fix: Minor fix translate services
ZhymabekRoman Jan 24, 2023
83c3a93
add: add test clean_cache
ZhymabekRoman Jan 24, 2023
7bb79ae
fix: use SizeLimitedLRUCache in request class
ZhymabekRoman Jan 24, 2023
c672da4
[skip ci] [add] adding new models
Animenosekai Mar 1, 2023
e0e2cba
[update] using shorter variable names for languages [add] adding a br…
Animenosekai Mar 2, 2023
4bf04da
[fix] fixing bugs
Animenosekai Mar 2, 2023
b311690
[update] avoid type checking data [add] adding a new request handler …
Animenosekai Mar 2, 2023
88032f5
[update] avoid showing the private attributes to the in __repr__
Animenosekai Mar 2, 2023
21157a1
[update] Making the `Translate` class inherit from `BaseTranslator` a…
Animenosekai Mar 3, 2023
e34eb62
[update] updating the docstring for `Translate.__init__`
Animenosekai Mar 3, 2023
0c8e083
[update] allow for other arguments in subclasses of BaseTranslator [u…
Animenosekai Mar 3, 2023
1b633c6
[fix] fixing the new translators
Animenosekai Mar 3, 2023
4f82de3
[add] adding indonesian and turkish to DeepL's supported languages
Animenosekai Mar 3, 2023
fff8118
[add] adding missing langauges to Reverso
Animenosekai Mar 3, 2023
b9804ff
[add] adding Ukrainian to DeepL
Animenosekai Mar 3, 2023
1d62533
[udpate] adding aliases to translators
Animenosekai Mar 3, 2023
2de6ff8
[fix] fixing an issue where the services would be incorrectly instant…
Animenosekai Mar 3, 2023
1033e1f
[update] updating the default services_list on `Translate`
Animenosekai Mar 3, 2023
4f5c2c2
Merge branch 'Animenosekai:main' into main
ZhymabekRoman Apr 4, 2023
c6cce0f
[fix] fixing the cli real quick
Animenosekai May 20, 2023
fa4ad87
refactor: replace all ANSI color codes with color class helper
ZhymabekRoman Jun 27, 2023
dff805d
refactor: migrate all shell logic into Cmd class
ZhymabekRoman Jun 27, 2023
4981c1f
fix: class name simplify
ZhymabekRoman Jun 27, 2023
5b7cc37
fix: fix test hanging
ZhymabekRoman Jun 27, 2023
b3f320e
[readme] add disclaimer to README
Animenosekai Aug 12, 2023
b9003a1
Merge branch 'main' into next
Animenosekai Aug 12, 2023
f2ca147
Merge pull request #86 from ZhymabekRoman/cli-dev-1
Animenosekai Aug 13, 2023
42b6910
Merge pull request #76 from ZhymabekRoman/main
Animenosekai Aug 13, 2023
9534076
Merge branch 'next' into website
Animenosekai Aug 13, 2023
21b9634
Merge pull request #90 from Animenosekai/website
Animenosekai Aug 13, 2023
3a19f04
Keeping the most up-to-date code in ready - started server on 0.0.0.0…
Animenosekai Aug 13, 2023
9f9e3ed
Merge pull request #91 from Animenosekai/new-models
Animenosekai Aug 13, 2023
e263c18
[add] adding new server [add] adding new language management [update]…
Animenosekai Aug 15, 2023
20e0807
[update] finish migration to cain
Animenosekai Aug 15, 2023
f7962fb
[skip ci] [repo] reorganize playground
Animenosekai Aug 15, 2023
ccc9e72
[update] reorganize repo and module
Animenosekai Aug 15, 2023
5817dd6
[add] adding a TUI [update] reorganize CLI [update] adding back `eng`…
Animenosekai Aug 23, 2023
6f4b577
[add] reimplement HTML translation
Animenosekai Aug 25, 2023
fc80c5c
[ci] add more python version to pytest
Animenosekai Aug 25, 2023
9c146f5
[update] fixing compatibility issues
Animenosekai Aug 25, 2023
fc90c86
[ci] testing only on py3.10>= because of `kw_only` on dataclasses
Animenosekai Aug 25, 2023
31ab8cc
[fix] fixing bing and microsoft
Animenosekai Aug 25, 2023
6a5fe8c
[fix] fixing filenotfound
Animenosekai Aug 25, 2023
c45e57b
[fix] fixing isadirectory error
Animenosekai Aug 25, 2023
0ef8f8c
[fix] fixing bing translate
Animenosekai Aug 25, 2023
0662c51
[add] adding `/stream` and `/translate/html` endpoints
Animenosekai Aug 26, 2023
2333b99
[update] updating types
Animenosekai Aug 26, 2023
7e41c1a
[update] Updating the website
Animenosekai Aug 26, 2023
83edbc6
[update] defaulting CLI to TUI
Animenosekai Aug 26, 2023
5896862
[update] updating the CLI
Animenosekai Aug 26, 2023
a389e63
[update] making the CLI text a positional
Animenosekai Aug 26, 2023
f6ac3f5
[fix] fixing error when language does not have `Language.foreign`
Animenosekai Aug 26, 2023
599bcfd
[update] fix compatibility issue with <=python3.11
Animenosekai Aug 26, 2023
348acf9
[fix] typo `tts` => `text_to_speech` [update] add exception details
Animenosekai Aug 27, 2023
d7291ba
[add] adding papago
Animenosekai Aug 28, 2023
ca4a5a9
requirements: update
ZhymabekRoman Aug 29, 2023
60f3dc9
binary-linux: add Nuitka builld for Linux
ZhymabekRoman Aug 29, 2023
391c259
build-bin: fix CI
ZhymabekRoman Aug 29, 2023
57288d2
binary-build: typo fix
ZhymabekRoman Aug 29, 2023
7418aca
trash-file: delete
ZhymabekRoman Aug 29, 2023
8d6be77
build-bin: use Python 3.10.8
ZhymabekRoman Aug 29, 2023
50663c0
build-bin: Use Ubuntu 22.04 as build image with Python 3.10
ZhymabekRoman Aug 29, 2023
09eafe2
microsoft: re-implementation
ZhymabekRoman Aug 29, 2023
81768f6
deepl: new implementation based on Android version
ZhymabekRoman Aug 29, 2023
a2a4dba
[fix] fixing an error with `Language` being unhashable
Animenosekai Sep 2, 2023
4459c20
fix: architectural changes & microsoft fixes
ZhymabekRoman Sep 2, 2023
3f537e2
[update] structuring the build script
Animenosekai Sep 3, 2023
3a4866d
[fix] fixing typo in build.py
Animenosekai Sep 3, 2023
b750ac6
Merge branch 'Animenosekai:next' into next
ZhymabekRoman Sep 4, 2023
79660eb
build-linux: add build.py build instructions
ZhymabekRoman Sep 4, 2023
7dc0ba0
microsoft: prepare for pushing into next branch
ZhymabekRoman Sep 4, 2023
fefbabd
deepl: add formality support
ZhymabekRoman Sep 4, 2023
d81b457
mymemory: fix language detecting
ZhymabekRoman Sep 4, 2023
a245ddb
base_aggregator: fixing typo
ZhymabekRoman Sep 5, 2023
8b7d3e5
Delete `test.py`
Animenosekai Sep 5, 2023
4a8f6a2
Merge pull request #95 from ZhymabekRoman/next-microsoft
Animenosekai Sep 5, 2023
49ff056
CI: using build.py for building binary files
ZhymabekRoman Sep 7, 2023
8f95018
CI: fixing typo
ZhymabekRoman Sep 7, 2023
39f9cc8
DEV: requirements export using poetry
ZhymabekRoman Sep 7, 2023
81d1d2d
Merge branch 'next' into next
Animenosekai Sep 7, 2023
c352bc3
Merge pull request #94 from ZhymabekRoman/next
Animenosekai Sep 7, 2023
3d5bf3e
[add] adding things to build.py
Animenosekai Sep 16, 2023
2865951
[fix] fixing a bug in docs generation with different paths for functions
Animenosekai Sep 16, 2023
2fb3957
[update] change help message
Animenosekai Sep 16, 2023
0064034
[add] adding assets [add] adding build and release commands
Animenosekai Sep 17, 2023
749e9b6
[add] adding the imports sdk
Animenosekai Sep 19, 2023
1cafa6a
[add] finshing up the imports sdk
Animenosekai Sep 23, 2023
9a39e55
[add] listing common languages
Animenosekai Sep 23, 2023
37ed829
[add] add json minification [add] add language sdk
Animenosekai Sep 24, 2023
05155b5
[add] finishing up the langauge sdk
Animenosekai Sep 24, 2023
f16e74b
[add] adding logging level to cli
Animenosekai Sep 24, 2023
35a6c3b
[update] fixing debug logging
Animenosekai Sep 24, 2023
13bc6f6
[fix] fixing typo in language sdk
Animenosekai Sep 24, 2023
065cd70
[update] adding the --minify arg
Animenosekai Sep 24, 2023
04047e1
[add] adding the sdk init and sdk new commands
Animenosekai Sep 24, 2023
069bf83
[update] update CI/CD stuff [add] adding stuff to the SDK [update] st…
Animenosekai Sep 25, 2023
f262d35
[update] removing test project
Animenosekai Sep 25, 2023
3561463
[update] updating website dependencies [fix] fixing styling issues on…
Animenosekai Oct 14, 2023
4f58dc0
[update] naming translators
Animenosekai Oct 14, 2023
d0ba2c1
[add] adding back tts [update] adding a message to the console onload…
Animenosekai Oct 15, 2023
1b5b2b8
[update] title of page
Animenosekai Oct 15, 2023
7ae9641
[playground] unsuccessful gtranslate batchexecute re
Animenosekai Oct 15, 2023
5f9a749
[update] add compatibility with miko 2.0 and generate API reference
Animenosekai Oct 31, 2023
6bd2237
[update] trying out new reference
Animenosekai Oct 31, 2023
477783a
Basic promt implementation
ZhymabekRoman Feb 14, 2024
a47086c
Prepare for release Promt
ZhymabekRoman Mar 7, 2024
dac4f8d
Merge pull request #100 from ZhymabekRoman/main
Animenosekai Jul 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build

# This workflow runs only manually
on:
workflow_dispatch:

jobs:
build-and-push-linux:
name: Build (Linux)
runs-on: ubuntu-22.04

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: CI workflow device configuration
run: |
whoami
df -h
uname -a
lscpu
free -h

- name: Create and activate venv
run: |
python3 -m venv venv
source venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV

- name: Install requirements
run: |
pip install -r requirements.txt -r requirements-dev.txt

- name: Building
run: |
python3 build.py build

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: translatepy-${{ runner.os }}-${{ github.run_number }}
path: |
translatepy.bin
58 changes: 0 additions & 58 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

77 changes: 77 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
name: "CodeQL"

on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '16 2 * * 3'

jobs:
analyze:
name: Analyze
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners
# Consider using larger runners for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'python' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
# Use only 'java' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
8 changes: 3 additions & 5 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# This workflow will install Python dependencies and lint with Python 3.9
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Pylint

on:
Expand All @@ -11,11 +10,10 @@ on:

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
python-version: [3.11]

steps:
- uses: actions/checkout@v2
Expand All @@ -27,7 +25,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install pylint
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install .
- name: Lint with pylint
run: pylint -j 0 --ignore=_language_data.py translatepy
run: pylint -j 0 translatepy
continue-on-error: true
31 changes: 0 additions & 31 deletions .github/workflows/pypi.yml

This file was deleted.

91 changes: 0 additions & 91 deletions .github/workflows/pytest.yml

This file was deleted.

Loading
Loading