RawText {translate:"pack.name"} does not bring back pack.name from .lang. Shows "pack.name" as a string literal.
Partner Rank:
N/A
Verification Builds:
26925527 UWP
Regression Builds:
Unknown
Summary:
RawText {translate:"pack.name"} does not work. Shows "pack.name" as a string literal.
Affects currently Live Content:
Yes
Impact:
Unable to dynamically include the name of our product from pack.name without duplicating this string. We are creating libraries that we can share across our Add-Ons, and were hoping to use pack.name. It can be worked around, but this should technically work, so this seems like a bug, hence the report.
Repro Steps:
With the supplied BP/RP (see attachments):
- Open a world with the PACKNAMEDEBUG packs applied.
- Break any block.
- Observe that "pack.name" appears in the chat, despite using {translate:"pack.name"} (a string that exists in the RP .lang)
On your own:
- Paste this command:
- {{/tellraw @s {"rawtext":[
{"text":"Hi from: "}
, {"translate":"pack.name"}]}}}
- {{/tellraw @s {"rawtext":[
{"text":"Hi from: "}
Observed Results:
With the supplied BP/RP:
- Observe that "pack.name" appears in the chat, despite using {translate:"pack.name"} (a string that exists in the RP .lang). pack.name should appear as "
On your own:
- Observe that pack.name does not get translated.
Expected Results:
- "pack.name" should translate to the appropriate localization definition in the .lang file (e.g. if pack.name=My Cool Add-On, then {translate:"pack.name"} should output "My Cool Add-On")
Screenshots/Videos attached:
Screen Recording: https://capture.dropbox.com/cZbvH6rjoWZ7lvh3

Notes: