Open yadvirkaur opened 2 months ago
I did this for only the History, Favourites and Others tabs, kindly review the solution, if I am in the right direction this needs to be done for other tabs too such as : Shabads, Search, Announcements and Dhan-Guru. SImilar thing can be done for overlay screens too. Guide me here.
@yadvirkaur as we discussed this in call, can we instead use the en.json file for constants, instead of a separate file here.
I began with en.json but realised these strings are not user-facing, but are being used for internal logic in code. Using en.json might introduce risks of translation affecting the application's logic. How should we proceed?
Let me think a little on this one, I will get back to you on this in a day or two.
1802
This solution is for the task: "File: MiscHeader.jsx line: 36 we are passing a static string to setTab. Instead, there should be a common js file in constants folder which should have all these tab names and replace that variable in all the files that are using this static string. Not limited to the mentioned line number and file."
Solution: Move all tab names to a new constants file in the constants folder and replace all static string references to tab names across the application with these constants.