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

fix: Implement missing recursive is_cachable() for Expr::Localize #6

Merged
merged 3 commits into from
Oct 11, 2022

Conversation

LeoniePhiline
Copy link

@LeoniePhiline LeoniePhiline commented Oct 11, 2022

fix: Implement missing recursive is_cachable() for Expr::Localize

Check recursively if Expr::Localize is cacheable.

Rationale:
Lookup is static and reproducible and thus cachable for each set of text_id and arguments.

Therefore, localize() exprs are cachable whenever their input is cachable.

fix(style): Name localization message identifier as in Fluent Project

Quote from https://projectfluent.org/fluent/guide/hello.html

hello = Hello, world!

Each message has an identifier that allows the developer to bind it to the place in the software where it will be used. The above message is called hello.

fix(style): Normalize test names, prefix all with test_

Bring names of i18n tests in line with all other tests, by prefixing test_:

image

Quote from https://projectfluent.org/fluent/guide/hello.html

```ftl
hello = Hello, world!
```

Each message has an identifier that allows the developer to bind it to the place in the software where it will be used. The above message is called `hello`.
@LeoniePhiline
Copy link
Author

@11Tuvork28 Can be merged

@89Q12
Copy link
Owner

89Q12 commented Oct 11, 2022

Thanks again for the work you're putting into this, highly appreciated!

@89Q12 89Q12 merged commit 9e1f326 into 89Q12:i18n Oct 11, 2022
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

Successfully merging this pull request may close these issues.

2 participants