.arb file support

Issue #865 open
Former user created an issue

ARB files are the recommended way to localize Flutter apps.

Please add .arb file support to Okapi.

Comments (5)

  1. Nico Sallembien

    Are you still planning on working on this? We have someone who is interested in contributing an ARB filter to OKAPI.

  2. Clément Mouchet

    Hi @Nico Sallembien Yes, but short of time in the near future. However I’ve go a working filter config that works well for ARB files using the JSON filter:

    okf_json@Flutter_i10n_arb.fprm

    #v1
    extractIsolatedStrings.b=true
    extractAllPairs.b=true
    exceptions=^(@).*
    useKeyAsName.b=true
    useFullKeyPath.b=true
    useLeadingSlashOnKeyPath.b=false
    escapeForwardSlashes.b=false
    useCodeFinder.b=false
    noteRules=.*(description|type|example|placeholders).*
    extractionRules=
    idRules=
    genericMetaRules=.*(description|type|example|placeholders).*
    codeFinderRules.count.i=1
    codeFinderRules.rule0=
    codeFinderRules.sample=
    codeFinderRules.useAllRulesWhenTesting.b=true
    subfilter=okf_html
    

    We use a proprietary sub-filter that @David Meikle wrote to process them and my intention was to find a way that aligns with the Okapi direction to deal with ICUs. Unfortunately I haven’t got the time for this just now.

  3. Denis Konovalyenko
    • removed milestone

    @Clément Mouchet , I suppose this issue will not be covered in the upcoming 1.40.0 release.

    Feel free to adjust the milestone when you have a better vision for this.

  4. Log in to comment