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

Fluent's Message References is not being saved in Locize. #84

Closed
girisagar46 opened this issue Mar 28, 2023 · 1 comment
Closed

Fluent's Message References is not being saved in Locize. #84

girisagar46 opened this issue Mar 28, 2023 · 1 comment

Comments

@girisagar46
Copy link

🐛 Bug Report

In Fluent we can use Message References in placeables. A simple example would be:

menu-save = Save
help-menu-save = Click { menu-save } to save the file.

As per doc:

Referencing other messages generally helps to keep certain translations consistent across the interface and makes maintenance easier.

But, when I am doing locize save-missing the, message refenences are synced in the Locize project.

To Reproduce

  1. Create a common.ftl file.

  2. Put the following content in ftl file.

    hello = Hello
    
    hello-world = { hello } World
    
  3. Do locize save-missing

    locize save-missing --project-id=$LOCIZE_PROJECT_ID --api-key=$LOCIZE_API_KEY --namespace=common --language=en --format=fluent

    While doing this, I get this unusual message:

    unknown1 getMessageReference MessageReference {
        type: 'MessageReference',
        id: Identifier { type: 'Identifier', name: 'hello' },
        attribute: null
    }
    unknown1 getMessageReference MessageReference {
        type: 'MessageReference',
        id: Identifier { type: 'Identifier', name: 'hello' },
        attribute: null
    }
    adding 3 keys in en/common...
    FINISHED
    

    But, it's uploads the message Identifiers to Locize App.

  4. Check the Locize App

    image

    As you can see, the hello-world should be { hello } World but it is not.

Expected behavior

In Locize App, it should save message refenences as well. hello-world should be { hello } World instead of just World

Your Environment

  • os: Mac
  • locize-cli version: 7.13.2
@adrai adrai closed this as completed in b55d67f Mar 28, 2023
@adrai
Copy link
Collaborator

adrai commented Mar 28, 2023

v7.14.1 should fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants