Skip to content

Instantly share code, notes, and snippets.

@Zuhair-Kj
Zuhair-Kj / stringRelocator
Last active May 9, 2021 18:12
Android string relocator
# Moves string translations from one module to anothe in android project.
## How to use?
# Navigate to Android studio root directory, paste the script and invoke it from terminal:
# ./stringRelocator.sh ${source_module} ${destination_module} ${string_key}
# example: ./stringRelocator app core login_header
# In case you need to support more translation, just add the proper values directory name to the array list (line 44)
# The script moves stirngs line by line
# If the destination file does not exist then the script does not create the file for you but it does not remove the string from the source either.
# Happy coding!