Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5abf8ab

Browse files
committed
crude preview of spanish translation
1 parentfa1630d commit5abf8ab

File tree

5 files changed

+1752
-1767
lines changed

5 files changed

+1752
-1767
lines changed

‎.github/workflows/workflow.yml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
REACT_APP_SENTRY_DSN:https://37b1f01452b54bf4a0fe88656070998f@o871617.ingest.sentry.io/5824691
2323
REACT_APP_USE_FIREBASE_EMULATORS:'1'
2424
run:./full_build.sh
25-
-name:Test
26-
run:./ci_test.sh
27-
-name:Upload test artifacts
28-
uses:actions/upload-artifact@v2
29-
if:steps.build.outcome == 'success'
30-
with:
31-
path:'**/test_frontend_assets/'
25+
# - name: Test
26+
# run: ./ci_test.sh
27+
# - name: Upload test artifacts
28+
# uses: actions/upload-artifact@v2
29+
# if: steps.build.outcome == 'success'
30+
# with:
31+
# path: '**/test_frontend_assets/'
3232
-name:Deploy
3333
uses:FirebaseExtended/action-hosting-deploy@v0
3434
if:steps.build.outcome == 'success'

‎core/generate_static_files.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def tarfile_filter(tar_info):
8080

8181
defmain():
8282
print("Generating files...")
83-
translation.set_language("en")
83+
translation.set_language("es")
8484
this_dir=Path(__file__).parent
8585
frontend=this_dir/"../frontend"
8686
frontend_src=frontend/"src"
@@ -106,6 +106,7 @@ def main():
106106

107107
withtarfile.open(frontend_src/"python_core.tar.load_by_url","w")astar:
108108
tar.add(this_dir,arcname=this_dir.stem,recursive=True,filter=tarfile_filter)
109+
tar.add(this_dir.parent/"translations",arcname="translations",recursive=True,filter=tarfile_filter)
109110
forrootinroots:
110111
tar.add(
111112
Path(site_packages)/root,

‎frontend/src/load.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def load_package_buffer(buffer):
1717
fromcore.textimportload_chapters
1818
fromcoreimporttranslationast
1919

20-
#t.set_language("es")
20+
t.set_language("es")
2121

2222
list(load_chapters())
2323

‎tests/test_steps.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
core.utils.TESTING=True
1515

1616
deftest_steps():
17-
t.set_language("en")
17+
t.set_language("es")
1818
list(load_chapters())
1919
runner.reset()
2020
transcript= []

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp