Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function tr() does not format string #137

Closed
ScarletRedMan opened this issue Dec 23, 2021 · 3 comments
Closed

Function tr() does not format string #137

ScarletRedMan opened this issue Dec 23, 2021 · 3 comments
Assignees
Labels
bug Related to software malfunction
Milestone

Comments

@ScarletRedMan
Copy link

Describe the bug
Function tr() does not format string from file.

To Reproduce
Use function tr() and get message from file with formatting.

tr("test.a", "sample string");

messages.json

{
  "test.a": "This is a {0}."
}

Result: This is a {0}.

Expected behavior
Result: This is a sample string.

Screenshots or log
My code where I use it:
My code
File messages.json:
messages.json
Result:
Result

Environment (please complete the following information):

  • OS: Ubuntu 20.04 (using Wine 5.0)
  • Version 2.0.3

Additional context
It did work in version 2.0.2-pre3, but in 2.0.3 doesn't work. Just recompiled project with new SDK.

@ScarletRedMan ScarletRedMan added the bug Related to software malfunction label Dec 23, 2021
@dreamguxiang
Copy link
Member

Confirmed issue,Waiting to be repaired

@dreamguxiang
Copy link
Member

image
You can Comment here to temporarily solve

@RimuruChan RimuruChan added this to the 2.0.5 milestone Jan 2, 2022
@yqs112358
Copy link
Member

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Related to software malfunction
Development

No branches or pull requests

5 participants