This is used to add supplier translated room type text translations for testing
Clones the directory and changes the name to a more readable format.·
git clone https://gist.github.com/hayduke19us/73c83e90478727fadc0853c3d5516bc7.git &&
mv 73c83e90478727fadc0853c3d5516bc7 special_alex_script
rails r [path_to_script] [property uuids]
rails r special_alex_script/create_translations.rb "8bdffc79-edd6-5c72-a0bc-88fbe2807d2c"
rails r special_alex_script/create_translations "3208d3c5-95b0-5fb4-a882-093d23de475a d491b724-a7f5-52d2-850c-9af1c8e2ac0d"
To change the language or add more languags just add the key and value to the hash as seen on line 7 above.
- You are about to add French and Spanish translations to Properties ["73c83e90478727fadc0853c3d5516bc7"]
French translation added to Monumental Hotel Orlando·
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Monumental Hotel Orlando -- 504ff0e1-8e4f-5c87-8d95-c04d862ad950 is invalid
-- Name is invalid and Description is invalid
-- language must be unique, unable to create Spanish description translation