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

i18n #841

Open
wants to merge 76 commits into
base: main
Choose a base branch
from
Open

i18n #841

wants to merge 76 commits into from

Commits on Jun 16, 2022

  1. added language files for tests

    89Q12 committed Jun 16, 2022
    Configuration menu
    Copy the full SHA
    f8af562 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e9b1be5 View commit details
    Browse the repository at this point in the history
  3. added tests

    89Q12 committed Jun 16, 2022
    Configuration menu
    Copy the full SHA
    9877915 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2eb0fdf View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7d11fd2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8336929 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    72dda5e View commit details
    Browse the repository at this point in the history
  8. added locale attribute

    89Q12 committed Jun 16, 2022
    Configuration menu
    Copy the full SHA
    858ea69 View commit details
    Browse the repository at this point in the history
  9. corrected locale attribute

    89Q12 committed Jun 16, 2022
    Configuration menu
    Copy the full SHA
    465483d View commit details
    Browse the repository at this point in the history
  10. added feature localization

    89Q12 committed Jun 16, 2022
    Configuration menu
    Copy the full SHA
    39a1370 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    47cbb51 View commit details
    Browse the repository at this point in the history
  12. Fixed errors and added comment

    89Q12 committed Jun 16, 2022
    Configuration menu
    Copy the full SHA
    1874729 View commit details
    Browse the repository at this point in the history
  13. fix cargo files

    89Q12 committed Jun 16, 2022
    Configuration menu
    Copy the full SHA
    98ff019 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    07db0e7 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    8bd252e View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2022

  1. Configuration menu
    Copy the full SHA
    c96ada6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d1a46fe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cdbc7d0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4c7300c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7e1f5e6 View commit details
    Browse the repository at this point in the history
  6. removed last todos

    89Q12 committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    17f95e7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2c827f2 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c3f5684 View commit details
    Browse the repository at this point in the history
  9. Fixed typo th -> the

    89Q12 committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    2658da3 View commit details
    Browse the repository at this point in the history
  10. fixed test I messed up

    89Q12 committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    7b89872 View commit details
    Browse the repository at this point in the history
  11. Added fn quoted_ident to support only localize("foo", bar:baz) and

    added fail() if localize() is detected  in a template while the localization feature is not activated
    89Q12 committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    5ce38a3 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    7a11db6 View commit details
    Browse the repository at this point in the history
  13. Added cut() to localze function

    89Q12 committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    355163a View commit details
    Browse the repository at this point in the history
  14. Revert "Added cut() to localze function" because expr_any uses alt wh…

    …ich tries until on parser succeeds but this also means when localize gets call with non localize string it fails and generates a failure
    
    This reverts commit 355163a.
    89Q12 committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    62027c8 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    bbe5991 View commit details
    Browse the repository at this point in the history
  16. removed .to_string()

    89Q12 committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    f3ec8c7 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    cc01d9b View commit details
    Browse the repository at this point in the history
  18. A bunch of changes

    * Format the code, and add missing newlines between blocks
    * Collect arguments in Vec instead of HashMap to preserve call order
    * Let text_id be a normal variable or literal
    * Fix cut() in parser
    * Don't feature gate most on the implementation to make the
      implementation simpler to read and understand
    * Add more error messages how to use the feature
    * Build the hashmap in one place
    Kijewski committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    afbc64f View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2022

  1. Merge pull request djc#1 from Kijewski/i18n

    A bunch of changes
    89Q12 authored Jun 18, 2022
    Configuration menu
    Copy the full SHA
    b3714f4 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2022

  1. Configuration menu
    Copy the full SHA
    569a79b View commit details
    Browse the repository at this point in the history
  2. Corrected comment

    89Q12 committed Jun 19, 2022
    Configuration menu
    Copy the full SHA
    db5c3e2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    129786d View commit details
    Browse the repository at this point in the history
  4. Merge pull request djc#2 from Kijewski/br-i18n-with-compile-time-checks

    Validate localization at compile time
    89Q12 authored Jun 19, 2022
    Configuration menu
    Copy the full SHA
    ba50d10 View commit details
    Browse the repository at this point in the history
  5. Fixed various Clippy complaints

    89Q12 committed Jun 19, 2022
    Configuration menu
    Copy the full SHA
    ca2ca74 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    da0319b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    da9f506 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    96c63c5 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    7663bf8 View commit details
    Browse the repository at this point in the history
  10. Merge pull request djc#3 from Kijewski/br-i18n-with-compile-time-checks

    Fix "all" the clippy warnings
    89Q12 authored Jun 19, 2022
    Configuration menu
    Copy the full SHA
    03b4979 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2022

  1. Configuration menu
    Copy the full SHA
    08d34bd View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2022

  1. Merge branch 'main' into i18n

    89Q12 authored Jul 28, 2022
    Configuration menu
    Copy the full SHA
    39b0c4a View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2022

  1. Fix lint job

    89Q12 authored Sep 5, 2022
    Configuration menu
    Copy the full SHA
    6872a72 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2022

  1. Configuration menu
    Copy the full SHA
    92fadc9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    98a4777 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    63ed5c9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    073e92a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f944c86 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c32b22d View commit details
    Browse the repository at this point in the history
  7. refactor: Confine i18n code inside i18n modules

    Proc-macro askama_derive::i18n_load!() must remain in root namespace,
    due to restrictions in proc-macro exports.
    However, it is re-published as `askama::i18n::load!()`.
    LeoniePhiline committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    426575e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    81cce1a View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    1c315d6 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    6384ae2 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2022

  1. Merge pull request djc#4 from LeoniePhiline/i18n

    Resolve rework requests
    89Q12 authored Oct 11, 2022
    Configuration menu
    Copy the full SHA
    7f82494 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3f002ef View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    925d1b5 View commit details
    Browse the repository at this point in the history
  4. Merge pull request djc#5 from LeoniePhiline/i18n

    docs: Rename example template struct
    89Q12 authored Oct 11, 2022
    Configuration menu
    Copy the full SHA
    8f30ba5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b52aaf3 View commit details
    Browse the repository at this point in the history
  6. fix(style): Name localization message identifier as in Fluent Project

    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 committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    9909c36 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6cda9f5 View commit details
    Browse the repository at this point in the history
  8. Merge pull request djc#6 from LeoniePhiline/i18n

    fix: Implement missing recursive `is_cachable()` for `Expr::Localize`
    89Q12 authored Oct 11, 2022
    Configuration menu
    Copy the full SHA
    9e1f326 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    7c15904 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    5c35e12 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    2bbba70 View commit details
    Browse the repository at this point in the history
  12. Merge pull request djc#7 from LeoniePhiline/i18n

    Fix: Add missing trailing newline in ftl file
    89Q12 authored Oct 11, 2022
    Configuration menu
    Copy the full SHA
    b5dda4c View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2023

  1. Configuration menu
    Copy the full SHA
    f9dfa60 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2023

  1. Configuration menu
    Copy the full SHA
    70dca43 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    47b7c6c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e1b66c8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b21ba00 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2023

  1. Fix conflict

    TTWNO committed Jul 16, 2023
    Configuration menu
    Copy the full SHA
    4a3b1d0 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2023

  1. Cargo format

    TTWNO committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    7a79974 View commit details
    Browse the repository at this point in the history