-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from ubclaunchpad/diffing-algorithm-part-2
Diffing Algorithm Part 2
- Loading branch information
Showing
20 changed files
with
381 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
from django.urls import path | ||
from . import views | ||
from .views import TokenView, TranslationView | ||
from .views import TokenView, TranslationView, ProcessTranslationsView, PullTranslations, TestTokenView | ||
|
||
urlpatterns = [ | ||
path('token/', TokenView.as_view(), name='create-token'), | ||
path('token/<str:value>/', TokenView.as_view(), name='read-token'), | ||
path('test/', TestTokenView.as_view(), name='test-token'), | ||
path('translation', TranslationView.as_view(), name='translation'), | ||
path('translations', views.ProcessTranslationsView.as_view(), name='process-translations') | ||
path('translations', ProcessTranslationsView.as_view(), name='process-translations'), | ||
path('translations/pull/', PullTranslations.as_view(), name='pull-translations'), | ||
path('translations/push/', TranslationView.as_view(), name='push-translations'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,38 @@ | ||
[build-system] | ||
requires = ['setuptools>=42'] | ||
build-backend = 'setuptools.build_meta' | ||
requires = ["setuptools >= 42", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "localization" | ||
version = "1.0.0" | ||
authors = [ | ||
{ name = "UBC Launchpad", email = "strategy@ubclaunchpad.com" } | ||
] | ||
description = "A localization package for microservices" | ||
readme = "readme.md" | ||
license = { file = "LICENSE.txt" } | ||
keywords = ["localization", "microservices"] | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent" | ||
] | ||
dependencies = [ | ||
"requests>=2.25.1", | ||
"geocoder>=1.38.1", | ||
"geopy>=2.2.0", | ||
"Babel>=2.9.1", | ||
"dirsync>=2.2.5", | ||
] | ||
|
||
[project.scripts] | ||
i18nilize = "src.internationalize.command_line:cli" | ||
|
||
[tool.setuptools] | ||
packages = ["src"] | ||
|
||
[tool.setuptools.package-dir] | ||
src = "src" | ||
|
||
# [tool.setuptools.packages.find] | ||
# where = ["src"] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# api_helpers.py | ||
|
||
import requests | ||
from . import globals | ||
from . import globals | ||
import sys | ||
|
||
def create_token(): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
i18nilize/src/internationalize/default_languages/chinese.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"thank you": "\u8c22\u8c22" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"thanks": "merci", | ||
"hello": "bonjour" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"thank you": "danke" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"welcome": "\ud658\uc601\ud569\ub2c8\ub2e4" | ||
} |
4 changes: 4 additions & 0 deletions
4
i18nilize/src/internationalize/default_languages/spanish.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"hello": "hola", | ||
"thanks": "gracias" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.