forked from Bitmessage/transifex-webhook
Created a django project for transifex translation
This commit is contained in:
parent
3628348322
commit
1971fb0604
|
@ -4,10 +4,9 @@ from dotenv import load_dotenv
|
|||
from transifex.native import init, tx
|
||||
from transifex.native.parsing import SourceString
|
||||
|
||||
env_path=os.path.join(os.getcwd(),'transifex.env')
|
||||
load_dotenv(env_path)
|
||||
token = os.getenv('token')
|
||||
secret = os.getenv('secret')
|
||||
print("token value",token)
|
||||
init(token=token, languages=['el', 'fr', 'en'], secret=secret)
|
||||
# Add some strings to push
|
||||
strings = [SourceString('My Addresses')]
|
||||
|
|
Loading…
Reference in New Issue