I would like someone's help to compare and sort 2 files: .JSON (each file contains more than 4000 lines when viewed in the notepad ++)
Let me explain:
File1.json (imagine that this file has everything in Portuguese after 2 points (:))
var PT = {
"xxx.yyy.Masculino": "Masculino",
"yyy.yyy.Femenino": "Feminino",
"yyy.yyy.Sexo_no_informado": "Sex"
}
File2.json (imagine that this file has its content all in English after 2 points (:))
var ING = {
"yyy.yyy.Femenino": "Fem",
"xxx.yyy.Masculino": "Muscle",
"yyy.yyy.Sexo": "Sex"
}
Observation 1: If they are set correctly, the codes (on the left side of the 2 points, example: "yyy.yyy.Femenino") are not in the same sequential order among the files.
Observation2: I need you to show me if the codes are equal to the 2 values (PT and ING).
Ejemplo: "xxx.yyy.Masculino": "Masculino", " Musculino " //son iguales no debo traducir
"yyy.yyy.Femenino": "Feminino", "Fem" //distinto, debo traducir
The idea is to be able to verify more easily, the differences to know if I should translate that field or not.
Any ideas on how to do this automatically? Since doing this Line by Line I lose a lot of time. Since I am grateful.