mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-10 15:25:42 -07:00
11 lines
371 B
Python
11 lines
371 B
Python
import glob, shutil, re
|
|
|
|
exports = input("Path of folder of exported Crowdin files: ")
|
|
dest = input("Destination resources folder: ")
|
|
|
|
for filename in glob.glob(f"{exports}\\**\\*.*", recursive=True):
|
|
print(f"Copying {filename}")
|
|
|
|
localeCode = re.search("\\\\([a-zA-Z\\-]+)\\\\Strings.", filename).group(1)
|
|
|
|
shutil.copy(filename, dest + f"\\Strings.{localeCode}.resx") |