csv-import
csv-import copied to clipboard
Internationalization support
Proposed implementation:
- The importer has predefined languages but the consumer can still override these translations
const customTranslations: {
jp: {
"Upload": "アップロード",
"Browse files": "ファイルを参照",
},
pt: {
"Upload": "Carregar",
"Browse files": "Procurar arquivos",
},
}
<CSVImporter language="es" customTranslations={customTranslations} ...props />
Screencast from 03-08-2024 12:55:20 PM.webm
Related Issue: #84
Hi,
Any idea when this will be merged?
This looks good, any idea when we'll get a release with this in it? @ciminelli
Hi! Awesome feature. Any estimate on the release? Or is it possible to use it rn 🤔
@kedrigen @johnwards @gabrielwiggert this is now released and available with version 1.0.12
!
The documentation can be found here: https://github.com/tableflowhq/csv-import?tab=readme-ov-file#internationalization
Awesome! Thank you so much.
Just one fix in the documentation:
<CSVImporter language="jp" translations={customTranslations} ...props />
to
<CSVImporter language="jp" customTranslations={customTranslations} ...props />
(The correct prop is customTranslations instead of translations ;) )
Awesome! Thank you so much.
Just one fix in the documentation:
<CSVImporter language="jp" translations={customTranslations} ...props />
to
<CSVImporter language="jp" customTranslations={customTranslations} ...props />
(The correct prop is customTranslations instead of translations ;) )
Thanks! I noticed this too and updated the README after I merged the PR.