问题
I notice in all of the examples of angular-translate that they use translation ids like "errorMessage" as opposed to using the actual error message string like gettext does. Example:
{{'errorMessage' | translate }}
instead of
{{'Uh oh, something went wrong!' | translate}}
Q Why should/shouldn't one use the string as the actual translation id? It seems that it would improve readability and allow for easier translation of the resulting .json file.
来源:https://stackoverflow.com/questions/36852282/use-strings-as-keys-in-angular-translate-angularjs