Add language parameter to public API for getL10N()

Fix #9756 

@DeepDiver1975 @schiesbn @PVince81