https://avo.cool logo
Join Discord
Powered by
# avo-2
  • l

    lemon-wall-20836

    03/11/2022, 12:45 PM
    you can using the
    resource_translations
    attribute
  • l

    lemon-wall-20836

    03/11/2022, 12:45 PM
    https://docs.avohq.io/1.0/localization.html#localizing-resources
  • l

    lemon-wall-20836

    03/11/2022, 12:46 PM
    Copy code
    yaml
    # avo.es.yml
    es:
      avo:
        dashboard: 'Dashboard'
        # ... other translation keys
        resource_translations:
          user:
            zero: 'usuarios'
            one: 'usuario'
            other: 'usuarios'
  • l

    lemon-wall-20836

    03/11/2022, 12:46 PM
    you mean like that?
  • l

    lemon-wall-20836

    03/11/2022, 12:46 PM
    same for fields (below that on the docs page)
  • i

    important-terabyte-39911

    03/11/2022, 1:48 PM
    ohh thanks, should have checked the docs before asking 😅
  • l

    lemon-wall-20836

    03/11/2022, 1:48 PM
    haha
  • l

    lemon-wall-20836

    03/11/2022, 1:48 PM
    yeah. we keep our docs up to date. that's the best spot to go to first
  • i

    important-terabyte-39911

    03/11/2022, 1:54 PM
    qq, is there any default key for field translations ? or should I manually add one to each of my fields in avo ?
  • l

    lemon-wall-20836

    03/11/2022, 1:54 PM
    not sure I understand the question
  • l

    lemon-wall-20836

    03/11/2022, 1:56 PM
    oh
  • l

    lemon-wall-20836

    03/11/2022, 1:56 PM
    I got it
  • l

    lemon-wall-20836

    03/11/2022, 1:57 PM
    there is something automated
  • l

    lemon-wall-20836

    03/11/2022, 1:57 PM
    let me check
  • l

    lemon-wall-20836

    03/11/2022, 1:57 PM
    it's
    avo.field_translations.FIELD_NAME
  • l

    lemon-wall-20836

    03/11/2022, 1:57 PM
    and should be added automatically
  • l

    lemon-wall-20836

    03/11/2022, 1:57 PM
    I should remove the
    translation_key
    option
  • i

    important-terabyte-39911

    03/11/2022, 1:58 PM
    I'll try that
  • i

    important-terabyte-39911

    03/11/2022, 2:03 PM
    I think I found a small bug 🙂
  • l

    lemon-wall-20836

    03/11/2022, 2:03 PM
    coo! 🙂
  • i

    important-terabyte-39911

    03/11/2022, 2:03 PM
  • l

    lemon-wall-20836

    03/11/2022, 2:03 PM
    would you mind posting a ticket here? https://github.com/avo-hq/avo/issues/new?assignees=&labels=&template=bug_report.md&title=
  • i

    important-terabyte-39911

    03/11/2022, 2:04 PM
    the is not getting translated
  • i

    important-terabyte-39911

    03/11/2022, 2:12 PM
    for some reason github won't let me post a bug report
  • l

    lemon-wall-20836

    03/11/2022, 2:12 PM
    whaaa?
  • l

    lemon-wall-20836

    03/11/2022, 2:12 PM
    that's weird
  • l

    lemon-wall-20836

    03/11/2022, 2:12 PM
    what does it say?
  • l

    lemon-wall-20836

    03/11/2022, 2:13 PM
    can you post a screenshot? I'm only asking to see if there's something on my end to do (permissions or other things)
  • l

    lemon-wall-20836

    03/11/2022, 2:14 PM
    I'll create the bug report
  • l

    lemon-wall-20836

    03/11/2022, 2:15 PM
    https://github.com/avo-hq/avo/issues/725
1...293031...64Latest