Created
April 19, 2015 15:56
-
-
Save pi0/3fddcd919e9f9c9072b7 to your computer and use it in GitHub Desktop.
Google translate Offline Language Files
This file contains hidden or 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
| https://dl.google.com/translate/offline/v3/r1/c.zip | |
| https://dl.google.com/translate/offline/v3/r1/profiles.txt |
This file contains hidden or 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
| dl.google.com/translate/offline/v3/r1/desired language tag (2 letters).zip |
This file contains hidden or 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
| {"PKG":{"af":{"HS":"d0e75625ccb0fc1410d2d193cec69396b14eafb1","RV":1,"SZ":198282930},"ar":{"HS":"072c10f0e939233e5c538b20508471c22e52c623","RV":1,"SZ":230251524},"be":{"HS":"ba057e0ff874920d6fc45e9cfb191f450ee2b36d","RV":1,"SZ":187827304},"bg":{"HS":"2138257c78f3df655657d70a2176f40f71b82289","RV":1,"SZ":204296064},"c":{"HS":"4ff03717f6d7ae704f0fbbcd4de5d3367c74ea75","RV":1,"SZ":40904908},"ca":{"HS":"3ce1f9f1f98559a9d7b1b533bb3fa23bf47c64e5","RV":1,"SZ":210351155},"cs":{"HS":"9f270f8331d2b53543832862e6108f4e24a3a798","RV":1,"SZ":218222771},"cy":{"HS":"25a760e88a5a7ecac2b7641033b300892e408905","RV":1,"SZ":176710304},"da":{"HS":"f2dc549204e37ca383686d3c75450a385deffe8d","RV":1,"SZ":221583691},"de":{"HS":"6ba658adc58e67de65df4549fb4100b8422bc8ab","RV":1,"SZ":243743157},"el":{"HS":"5dfa94f365efd37410e9aaf28687439c0b9517db","RV":1,"SZ":214985545},"eo":{"HS":"762284c402dce4240c06eff597a08c86734bc49d","RV":1,"SZ":164794750},"es":{"HS":"74b4ad10171b12a3b9084d320b060d3065487ba9","RV":1,"SZ":213401304},"et":{"HS":"d33a9d0a5ee625e9d68c65416bbcf8c12fceb4f1","RV":1,"SZ":214370774},"fa":{"HS":"832ee122d877033fb53f8fb6f0384821a4f0389f","RV":1,"SZ":168313923},"fi":{"HS":"6078420152a50c6685ee716d4a2d5e70a3a0a2aa","RV":1,"SZ":219973652},"fr":{"HS":"f78c0494b2a826d086534b534eac82fc1887b7b8","RV":1,"SZ":210153249},"ga":{"HS":"95a0eb6681b086d23ae4552702cab0693b66fab6","RV":1,"SZ":164263483},"gl":{"HS":"3b7099ffb8d671c98611a4134ca3f6b4cd60e150","RV":1,"SZ":192064483},"hi":{"HS":"9720a1480c99d52a0ef3ab68c2b7855539f9f3dc","RV":1,"SZ":190530072},"hr":{"HS":"c91d5aa97ae5fa6ddd074fa1f48cf8ba66d866b5","RV":1,"SZ":208110269},"ht":{"HS":"508a7e958e30159e1c0e3dee9e5dbd9f3dcf3730","RV":1,"SZ":166037536},"hu":{"HS":"529a4a49ecc4c170b0925e3673fd40521a6392e8","RV":1,"SZ":225577014},"id":{"HS":"6fd59d24e4bcc39ca27509184b5e350affe7fe7c","RV":1,"SZ":206070936},"is":{"HS":"144107cec07747532ed904fa8af7b145bbd481e7","RV":1,"SZ":188127170},"it":{"HS":"f99eb64527ca85c121f2970b48eb8ae53460fd02","RV":1,"SZ":207256987},"iw":{"HS":"cae44dfc8acdc7bb6d10ac13fd479a03ba36105d","RV":1,"SZ":203445961},"ja":{"HS":"4ea9c6a431ab2a1e19211f08166a6fccb17fbf8b","RV":1,"SZ":233395331},"ka":{"HS":"08cf45b9511c805b1ac9f8c28b555f21a28532a3","RV":1,"SZ":163432787},"ko":{"HS":"5120e4edb98a8c3dabd24c91e6c7384c19b05f36","RV":1,"SZ":200147820},"lt":{"HS":"e646e0ba3a2b13e4e747de997a97810472340501","RV":1,"SZ":209125984},"lv":{"HS":"ebee3189a03c2a0da0b51f0df89fa6b6b2366500","RV":1,"SZ":205635289},"mk":{"HS":"91d221dfd4b6cee78cd4643048e5b9dcd8dd4bff","RV":1,"SZ":186809074},"ms":{"HS":"2c9daa1b1da4806950f8c5d56451a50208740181","RV":1,"SZ":202629294},"mt":{"HS":"be8e39411c1573f42caedf114d9aa79829d16880","RV":1,"SZ":189671120},"nl":{"HS":"2f4370934b7e3149fca6895a521b71b943495fee","RV":1,"SZ":233522354},"no":{"HS":"89a2ac0494a2d00853c1dd80f6d7dcf4b72c987c","RV":1,"SZ":234795189},"pl":{"HS":"ce6d685237330ab23e21c0492b24bcabf02afe24","RV":1,"SZ":212027920},"pt":{"HS":"e64775cf16c7c135a8b022b75c1d6c0df8160ac3","RV":1,"SZ":219336522},"ro":{"HS":"636c36cc7feff5dc6d04578dff80827dfd63c7ae","RV":1,"SZ":201421415},"ru":{"HS":"65393f5847522a659e2bdf946b2aeb57517f0a8e","RV":1,"SZ":226911733},"sk":{"HS":"bca6b5807713b9cf7c04bcec5bd03c7cc92b662f","RV":1,"SZ":213580216},"sl":{"HS":"cb3dadcaf27e6c71461092f394dcfe8c5019e3a2","RV":1,"SZ":200519363},"sq":{"HS":"ef172c0bce7b2f63d25ac79ec8a25072907d08c5","RV":1,"SZ":224416867},"sv":{"HS":"e53ccda772082f806796a1b02268f8f63957e1de","RV":1,"SZ":240528290},"sw":{"HS":"14a533d1e850378d4c891e590fe1c67a858834ae","RV":1,"SZ":172945223},"th":{"HS":"bbee34dd7b6a1556c5168948507c3dad75b890dd","RV":1,"SZ":198866738},"tr":{"HS":"e99e29ba9a71dcef8fb6736e5476e598ece234fc","RV":1,"SZ":216456854},"uk":{"HS":"cf612e1316a6322e9dcfe7396252278105d3e714","RV":1,"SZ":213911997},"vi":{"HS":"fa32369d51fe91f11c0419f72082886413a35e91","RV":1,"SZ":195334932},"zh":{"HS":"1b3308497c5d6ed0158371f328ced58e43e318d9","RV":1,"SZ":217747856}},"V":3} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
import json
from datetime import datetime
def convertFromFormat1(jsonObject):
# Example: Format 1 might have 'timestamp' as ISO string
# and 'val' as the reading.
iso_time = jsonObject.get('timestamp')
def convertFromFormat2(jsonObject):
# Example: Format 2 might use different keys
# Adapt this based on what you see in data-2.json
iso_time = jsonObject.get('recorded_at')
Logic to run tests
if name == "main":
# Load your local files here to test
# with open('data-1.json') as f:
# data1 = json.load(f)
# print(convertFromFormat1(data1))
pass