Extension function to localize style labels
the id of layers that will localize on, default is null which means will localize all the feasible layers.
the locale that applied for localization