Skip to content

Commit

Permalink
revert changes on the Python script
Browse files Browse the repository at this point in the history
  • Loading branch information
rgmez committed Oct 2, 2024
1 parent ef9672d commit f7506e1
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions scripts/download_change_logs_from_transifex.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,9 @@ def releaseNotesPath(locale):

# writes text to a file.
def writeToFile(filename, text):
directory = os.path.dirname(filename)
# check if the directory exists, if not, create it
if not os.path.exists(directory) and directory != '':
os.makedirs(directory)
with open(filename, "w") as f:
f.write(text)
f = open(filename, "w")
f.write(text)
f.close()

def updateChangeLogs(searchText, languageURL, languageFolders):
changeLogsText = fetchChangeLogsText(languageURL)
Expand All @@ -150,7 +147,7 @@ def updateChangeLogs(searchText, languageURL, languageFolders):
searchText = searchText.rsplit(".", periodCount - 1)[0]

languagesInformation = [
{ "name": "English", "transifixCode": "l:en", "fastlaneMetadataFolders": ["en-US", "en-UK"] },
{ "name": "English", "transifixCode": "l:en", "fastlaneMetadataFolders": ["en-US"] },
{ "name": "Spanish", "transifixCode": "l:es", "fastlaneMetadataFolders": ["es-ES", "es-MX"] },
{ "name": "Arabic", "transifixCode": "l:ar", "fastlaneMetadataFolders": ["ar-SA"] },
{ "name": "French", "transifixCode": "l:fr", "fastlaneMetadataFolders": ["fr-CA", "fr-FR"] },
Expand Down

0 comments on commit f7506e1

Please sign in to comment.