How to retrieve a custom label's translation for a specific language in apex ?
⚠️ ** This repo is not useful anymore since Salesforce released the functionnality in standard Label class
LabelTranslator t = new LabelTranslator();
String enLabel = t.translate('CustomLabelName','en');
System.debug(enLabel);
String frLabel = t.translate('CustomLabelName','fr');
System.debug(frLabel);
Checkout the repo and deploy it with sfdx:
sfdx force:source:deploy -p force-app