Giter Club home page Giter Club logo

meteor-simple-schema-i18n's Introduction

- If you want to help, please reach out to [email protected]

##Update

Support Meteor 1.7

Meteor Simple-Schema i18n

Internationalization for aldeed:simple-schema error messages, powered by tap:i18n.

UPDATE: To get reactively translated labels, placeholders and options in your autoforms, additionally use gwendall:autoform-i18n.

Installation

meteor add gwendall:simple-schema-i18n

Contribute

Help us building a complete i18n solution by translating simple-schema. To do so, please fork the repo and submit a pull request after adding / modifying any language file (in the /i18n folder).
The language code you should use to name new i18n.json files can be found in this list.

Credits

@microstudi, @StorytellerCZ, @jlourenco, @cypa1, @maredudd, @kjetilge, @Xiangshen-Meng, @panayi, @daveeel, @nirleka, @uzumaxy, @coderany, @timbrandin, @Adiel-Sharabi, @splendido, @Findegil, @ThePanuto, @achtan, @laosb, @serkandurusoy, @rzmz, @mahmoudkm, @xaiki, @Tim-W, @DavidSichau, @Szayet

To do

  • Afrikaans
  • Akan
  • Albanian
  • Amharic
  • Arabic
  • Armenian
  • Aromanian
  • Assamese
  • Azerbaijani
  • Azerbaijani (Turkey)
  • Bashkir
  • Basque
  • Belarusian
  • Bengali
  • Bosnian
  • Bulgarian
  • Burmese
  • Catalan
  • Catalan (Balear)
  • Chinese
  • Chinese (China)
  • Chinese (Hong Kong)
  • Chinese (Taiwan)
  • Corsican
  • Croatian
  • Czech
  • Danish
  • Dutch
  • Dutch (Belgium)
  • English
  • English (Australia)
  • English (Canada)
  • English (UK)
  • Esperanto
  • Estonian
  • Faroese
  • Finnish
  • French (Belgium)
  • French (France)
  • Frisian
  • Fulah
  • Galician
  • Georgian
  • German
  • Greek
  • Guaraní
  • Hawaiian
  • Hazaragi
  • Hebrew
  • Hindi
  • Hungarian
  • Icelandic
  • Indonesian
  • Irish
  • Italian
  • Japanese
  • Javanese
  • Kannada
  • Kazakh
  • Khmer
  • Kinyarwanda
  • Kirghiz
  • Korean
  • Kurdish (Sorani)
  • Lao
  • Latvian
  • Limburgish
  • Lithuanian
  • Luxembourgish
  • Macedonian
  • Malagasy
  • Malay
  • Malayalam
  • Marathi
  • Mingrelian
  • Mongolian
  • Montenegrin
  • Nepali
  • Norwegian (Bokmål)
  • Norwegian (Nynorsk)
  • Ossetic
  • Pashto
  • Persian
  • Persian (Afghanistan)
  • Polish
  • Portuguese (Brazil)
  • Portuguese (Portugal)
  • Punjabi
  • Rohingya
  • Romanian
  • Russian
  • Rusyn
  • Sakha
  • Sanskrit
  • Sardinian
  • Scottish Gaelic
  • Serbian
  • Sindhi
  • Sinhala
  • Slovak
  • Slovenian
  • Somali
  • South Azerbaijani
  • Spanish (Argentina)
  • Spanish (Chile)
  • Spanish (Colombia)
  • Spanish (Mexico)
  • Spanish (Peru)
  • Spanish (Puerto Rico)
  • Spanish (Spain)
  • Spanish (Venezuela)
  • Sundanese
  • Swahili
  • Swedish
  • Swiss German
  • Tagalog
  • Tajik
  • Tamil
  • Tamil (Sri Lanka)
  • Tatar
  • Telugu
  • Thai
  • Tibetan
  • Tigrinya
  • Turkish
  • Turkmen
  • Ukrainian
  • Uighur
  • Ukrainian
  • Urdu
  • Uzbek
  • Vietnamese
  • Walloon
  • Welsh

meteor-simple-schema-i18n's People

Contributors

achtan avatar adiel-sharabi avatar arthuryyx avatar carrot93 avatar cypa1 avatar davidsichau avatar dominikguzei avatar donwojtallo avatar drnachio avatar eterey avatar gwendall avatar idanwe avatar jlourenco avatar jsbranco avatar kjetilge avatar laosb avatar mahmoudkm avatar nirleka avatar olegmalkovdev avatar panayi avatar rzmz avatar serkandurusoy avatar splendido avatar storytellercz avatar szayet avatar tim-w avatar timbrandin avatar wdhif avatar xaiki avatar xiangshen-meng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

meteor-simple-schema-i18n's Issues

Can't install the package

Hello, i tried to install the package, however i get an error thrown at startup telling me TAPi18n is not defined - all the TAPi18n packages are present however...are there any other dependencies?

Thanks

error: conflict: constraint [email protected] is not satisfied by 1.1.0.

Hello when I try to install this package I have this compatibility error :

=> Errors while adding packages:

While selecting package versions:
error: conflict: constraint [email protected] is not satisfied by 1.1.0.
Constraints on templating come from:

aldeed:[email protected]
gwendall:[email protected]
[email protected]
[email protected] -> [email protected] -> [email protected] ->
[email protected] -> [email protected]
useraccounts:[email protected]

Shouldn't it be called simple-schema-i18n

Hey,

As this package actually does not directly use the autoform API but it does use Simple Schema, shouldn't this be called simple-schema-i18n instead of autoform-i18n?

Funny German translation of RegExp error message

At the moment, this package uses this translation for the regEx[0] error message:

[label] ist durch den Regulären Ausdruck gefallen

In my ears, this sounds rather funny. I'd recommend to change this to

[label] entspricht nicht dem regulären Ausdruck

which would match the English version better.

I would even prefer to change the text to

[label] hat ein ungültiges Format

meaning

[label] has an invalid format

as a typical end-user would not understand what a regular expression was. But maybe this should be addressed to @aldeed as the owner of the simple-schema package.

Can't get it to work

I've tried added both:

getUserLanguage = function () {
  return "fr";
}
TAPi18n.setLanguage(getUserLanguage());

or

TAPi18n.setLanguage("fr");

Doesn't matter what I do, I still get the english labels for the form validation of E-mail.

I'm rendering the E-mail input field with:

{{> afQuickField name='Email' tabindex='3' }}

Any ideas?

Conditional support for subset of languages

Hi,
let me explain my situation.

In my app, I use tap18n. I deploy my app to three different language domains. I only need one language sources e.g. *en.i18n.json at one time.

I have all my i18n files in project/gulp/i18n folder (which is added to .meteorignore). When I deploy my app I use gulp to copy e.g. all *.en.i18n.json to the /project/i18n - where tapi18n eagerly loads the language files

When doing this my app.js bundle only contains one set of language files. I am not sure if tap18n add all the language files to the client directly or use some AJAX to pull them. But in my tests If I copy all my language files to the /project/i18n folder, bundle size will increase.

Don't you guys have some ideas to implement similar behavior in this package?
To be able to conditionally add only one subset (language) of i18n files to the package.js

I tried this naive change: jirikrepl@de3aed6

But the change in package.js is not enough, it seems to be that tapi18n eagerly loads all the language files

This package has conditional language support: https://github.com/softwarerero/meteor-accounts-t9n
In their case, it seems to be that the change in package.js is enough because that package does not use tap18n https://github.com/softwarerero/meteor-accounts-t9n/blob/master/package.js

Key Name Fallback

Package is great, works well, very useful, but here's a usability issue.
Currently it seems a schema key must be specified in each language for it to be found in any.
Tap18n will fallback to the key name if a translation for the given language is not found. This allows us to avoid having a long English language file full of "Name": "Name"
Simple schema even upper cases default labels, this too would make this package complete, and consistent with Tap18n.
Thoughts?

Use of eval causes problem with browser policy

Hi,

My browser policy disallows the use of eval. Yours in the only package that I'm having problems with:

EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive

The error occurs on this line:

if (item.exp) item.exp = eval(item.exp); 

Is there a way around this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.