]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
doc: Mention strings with embedded expressions in TypeScript.
authorBruno Haible <bruno@clisp.org>
Tue, 11 Mar 2025 13:52:02 +0000 (14:52 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 11 Mar 2025 13:52:02 +0000 (14:52 +0100)
* gettext-tools/doc/gettext.texi (No string concatenation): Mention
"template literals" in TypeScript.

gettext-tools/doc/gettext.texi

index 4cb5e9692eb109eb9c4f20509d9b87c9e714413b..717ec6ce2209ecac752452d837249ff124644077 100644 (file)
@@ -2349,7 +2349,8 @@ In Java, string concatenation is denoted by the @samp{+} operator.
 In C#, string concatenation is denoted by the @samp{+} operator.
 @c Reference: https://learn.microsoft.com/en-us/dotnet/csharp/how-to/concatenate-multiple-strings
 @item
-In JavaScript and TypeScript, string concatenation is denoted by the @samp{+} operator.
+In JavaScript and TypeScript,
+string concatenation is denoted by the @samp{+} operator.
 @c Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Addition
 @item
 In Go, string concatenation is denoted by the @samp{+} operator.
@@ -2423,6 +2424,7 @@ but no formatting function is called.
 @cindex Python, strings with embedded expressions
 @cindex C#, strings with embedded expressions
 @cindex JavaScript, strings with embedded expressions
+@cindex TypeScript, strings with embedded expressions
 @cindex Ruby, strings with embedded expressions
 @cindex Shell, strings with embedded expressions
 @cindex Tcl, strings with embedded expressions
@@ -2443,7 +2445,8 @@ In C#, since C# 6.0, @emph{interpolated strings} can contain expressions.
 Such as @code{$"Hello, @{name@}!"}.
 @c Reference: https://learn.microsoft.com/en-us/dotnet/csharp/how-to/concatenate-multiple-strings
 @item
-In JavaScript, since ES6, @emph{template literals} can contain expressions.
+In JavaScript, since ES6, and in TypeScript,
+@emph{template literals} can contain expressions.
 Such as @code{`Hello, $@{name@}!`}.
 @c Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
 @item