Externalization of the Translation Levels
My goal for making this change was to externalize a constant variable into a separate file from the file. Therefore, I created data/languages
sub-directory and translation_levels.yml
file into languages
. Then, I updated the percentage_translated_for
method. The method reads the file and return the value of translation level.