diff options
Diffstat (limited to 'src/str.erl')
-rw-r--r-- | src/str.erl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/str.erl b/src/str.erl index 16e167664..c3206a261 100644 --- a/src/str.erl +++ b/src/str.erl @@ -64,10 +64,11 @@ to_float/1, prefix/2, suffix/2, - format/2, + format/2, to_integer/1, sha/1, - to_hexlist/1]). + to_hexlist/1, + translate_and_format/3]). %%%=================================================================== %%% API @@ -288,6 +289,11 @@ suffix(B1, B2) -> format(Format, Args) -> unicode:characters_to_binary(io_lib:format(Format, Args)). +-spec translate_and_format(binary(), binary(), list()) -> binary(). + +translate_and_format(Lang, Format, Args) -> + format(unicode:characters_to_list(translate:translate(Lang, Format)), Args). + -spec sha(iodata()) -> binary(). |