DroneRights [it/its] to Programmer Humor@programming.devEnglish • edit-28 months agoWelcome to the wonderful world of code obfuscationimgur.comimagemessage-square93fedilinkarrow-up1237arrow-down111file-text
arrow-up1226arrow-down1imageWelcome to the wonderful world of code obfuscationimgur.comDroneRights [it/its] to Programmer Humor@programming.devEnglish • edit-28 months agomessage-square93fedilinkfile-text
minus-square@xmunk@sh.itjust.workslinkfedilink22•8 months agoCan confirm this works completely as expected when the user’s system is set to lang=ES.
minus-square@Schmeckinger@feddit.delinkfedilink12•edit-28 months agoSimple save the users language setting in a variable, change it to english, check if the first letter is “s” and then change the language back.
minus-squareCosmicomicallinkfedilink1•8 months agotrue but that’s a precondition to some of the other examples as well
You forgot weekend = dayOfWeek.name[0] == ‘S’;
Can confirm this works completely as expected when the user’s system is set to lang=ES.
Simple save the users language setting in a variable, change it to english, check if the first letter is “s” and then change the language back.
Genius.
true but that’s a precondition to some of the other examples as well