Uppy: about locales i18n

Created on 11 Jan 2018  ·  5Comments  ·  Source: transloadit/uppy

I see some locales files in uppy/lib/loacles/ folder ,
How to use them ?
I want to i18n , Help me, thank you!

🌏 Locale

Most helpful comment

@de1ck hi! these strings are likely not translatable because we hardcoded them, sorry. We’ll try to fix that soon!

All 5 comments

i18n can be handled via props in your core Uppy module, help can be found inside the docs.

See documentation:
https://uppy.io/docs/uppy/#locale

const uppy = Uppy({
  autoProceed: true,
  locale: {
    strings: {
      exceedsSize: 'This file exceeds maximum allowed size of'
    }
  }
});

@zcallan about Dashboard UI locale
when I choose some file

  1. "Upload %{smart_count} file"
  2. onfocus "Edit File" and click "Done" "Editing 。。。" "Name"

about this . I dont know use it cover default word

04mi _ 0 uqk 8b3013hda
v98rriu 57s k 416f eo3

@de1ck hi! these strings are likely not translatable because we hardcoded them, sorry. We’ll try to fix that soon!

Hi! Should be fixed in the latest release: https://www.npmjs.com/package/uppy. Thanks for reporting!

Someone asked a question about Dashboard strings, but then the question was removed, I think. Going to answer anyway. Please make sure to always check actual strings used before translating (for example, the Dashboard: https://github.com/transloadit/uppy/blob/master/packages/%40uppy/dashboard/src/index.js#L54-L119), since strings change sometimes. We are thinking of how to approach this and make current strings more accessible to developers.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aleccool213 picture aleccool213  ·  3Comments

NihadOb picture NihadOb  ·  3Comments

agreene-coursera picture agreene-coursera  ·  4Comments

skunkwerk picture skunkwerk  ·  3Comments

hikurangi picture hikurangi  ·  4Comments