App icon indicating copy to clipboard operation
App copied to clipboard

Add tests for missing translation keys

Open iwiznia opened this issue 5 years ago • 11 comments

Context https://expensify.slack.com/archives/C01GTK53T8Q/p1626368845329900

Problem

We sometimes miss to add add a translations (right now in spanish only) for new keys added in the base english translation file

Solution

Add a Jest Unit test that iterates over all the keys (and it's subkeys) in the base english file and fails for any is not found in the rest of base language files (spanish for now)

View all open jobs on Upwork

iwiznia avatar Jul 15 '21 17:07 iwiznia

Triggered auto assignment to @jboniface (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

MelvinBot avatar Jul 15 '21 17:07 MelvinBot

@jboniface can you directly hire @parasharrajat please?

iwiznia avatar Jul 15 '21 17:07 iwiznia

Interesting stuff. This is important as I have been missing adding translations. :smile:

parasharrajat avatar Jul 15 '21 17:07 parasharrajat

invite sent, post here https://www.upwork.com/jobs/~01b4ab6512e3573b99

jboniface avatar Jul 15 '21 18:07 jboniface

@iwiznia Looks like there is are a lot of translations that are missing. How do you want me to handle that case? Do I need to add those translations as well(presumably extra work)? :face_with_head_bandage:

parasharrajat avatar Jul 15 '21 21:07 parasharrajat

If you can, that would be great, otherwise tests would fail for all open PRs... if you compile a list of missing translations, I can provide the translations in spanish for you.

iwiznia avatar Jul 19 '21 14:07 iwiznia

Added them already. Please review.

parasharrajat avatar Jul 19 '21 15:07 parasharrajat

paid

jboniface avatar Aug 05 '21 15:08 jboniface

@iwiznia @jboniface Be sure to fill out the Contact List!

botify avatar Aug 05 '21 15:08 botify

@parasharrajat do you have any idea why tests are not failing in this PR given there's a new key in english but no equivalent one in spanish?

iwiznia avatar Nov 30 '22 16:11 iwiznia

WHAT?! https://github.com/Expensify/App/actions/runs/3584994401/jobs/6032394720#step:6:4353 Tests failed, but build passed??! Taking it to slack

iwiznia avatar Nov 30 '22 16:11 iwiznia