shadi
Not angular specific - general guidance needed
I have a 60k line json that holds key:value for localization of a huge website
example:
and there's a file for each language.
I created a c# script that scans each ts & html file in my project
if on ts there's a regex that matches for .translate("string"), that string key is kept
and if in html the key is used next to a pipe, that key is also kept
all other unused keys will be deleted
but since I am using regex there are so many edge cases that don't work, specially since there could be a lot of differences when it comes to stylers, whitespaces...etc
Any idea how to do something like this in the context of vscode or whatever context:
scan all the ts files and whenever there's a ts file that injects translationService & uses the translate() method, take the passed key and log it somewhere
or get all references to a method, and see what value is passed to it.
also scan all the html files and whenever there's usage of my translation pipe, check the passed value and log it somewhere
8 replies
❔ What is AppUserId?
this is a migration, on line 20, there's a property called AppUserId, it's set to be a FK connecting the table with itself???
can someone please explain where this is coming from? my model doesn't have anything like this in it!
Using .net 6
https://paste.ofcode.org/aeGYBKGAVLGmLvBMP4UTiX
2 replies
❔ Social media profiles hidden information?
in social media websites
when i set something like my email to private or only shown for me
does the api return a different DTO each time?
and in that case, I will need to have 99999 DTOs depending on how many properties I have and how many combinations of information that can be hidden/shown?
14 replies