TYPO3 extBase get locallang labels in Controller

We can use the below code to get the locallang lables in our extension controllers.


Or we can use


Update the translation of Extensions Using Extension Manager From Repository

Below are the screenshots showing how to update the translations of extensions using extension manager from repository.


Hope this helps!