habitica-self-host/website/common/locales
Alys f302d15bc4 add length and character limitations for login name (username) (#9895)
* update API comments to for `username` restrictions and to use Login Name terminology

We use "login name" rather than "username" in user-visible text
on the website and (usually) when communicating with users because
"username" could be confused with "profile name".
Using it in the docs allows you to search for that term.

* add alphanumeric and length validation for creating new login name (username)

The 'en-US' locale is specified explicitly to ensure we never use
another locale. The point of this change is to limit the character
set to prevent login names being used to send spam in the Welcome
emails, such as Chinese language spam we've had trouble with.

* add error messages for bad login names

* allow login name to also contain hyphens

This is because our automated tests generate user accounts using:
  let username = generateUUID();

* allow login names to be up to 36 characters long because we use UUIDs as login names in our tests

* revert back to using max 20 characters and only a-z, 0-9 for login name.

It's been decided to change the username generation in the tests instead.

* disable test that is failing because it's redundant

Spaces are now prohibited by other code.

We can probably delete this test later. I don't want to delete it
now, but instead give us time to think about that.

* fix typos

* revert to login name restrictions that allow us to keep using our existing test code

I'm really not comfortable changing our test suite in ways that
aren't essential, especially since we're working in a hurry with
a larger chance than normal of breaking things.
The 36 character length is larger than we initially decided but
not so much larger that it's a huge problem.
We can reduce it to 20 when we have more time.

* limit username length to 20 chars

* fix tests
2018-01-27 09:33:56 -07:00
..
bg chore(i18n): update locales 2018-01-25 23:26:24 +00:00
cs chore(i18n): update locales 2018-01-25 23:26:24 +00:00
da chore(i18n): update locales 2018-01-25 23:26:24 +00:00
de chore(i18n): update locales 2018-01-25 23:26:24 +00:00
en add length and character limitations for login name (username) (#9895) 2018-01-27 09:33:56 -07:00
en@pirate chore(i18n): update locales 2018-01-25 23:26:24 +00:00
en_GB chore(i18n): update locales 2018-01-25 23:26:24 +00:00
es chore(i18n): update locales 2018-01-25 23:26:24 +00:00
es_419 chore(i18n): update locales 2018-01-25 23:26:24 +00:00
fr chore(i18n): update locales 2018-01-25 23:26:24 +00:00
he chore(i18n): update locales 2018-01-25 23:26:24 +00:00
hu chore(i18n): update locales 2018-01-25 23:26:24 +00:00
id chore(i18n): update locales 2018-01-25 23:26:24 +00:00
it chore(i18n): update locales 2018-01-25 23:26:24 +00:00
ja chore(i18n): update locales 2018-01-25 23:26:24 +00:00
nl chore(i18n): update locales 2018-01-25 23:26:24 +00:00
pl chore(i18n): update locales 2018-01-25 23:26:24 +00:00
pt chore(i18n): update locales 2018-01-25 23:26:24 +00:00
pt_BR chore(i18n): update locales 2018-01-25 23:26:24 +00:00
ro chore(i18n): update locales 2018-01-25 23:26:24 +00:00
ru chore(i18n): update locales 2018-01-25 23:26:24 +00:00
sk chore(i18n): update locales 2018-01-25 23:26:24 +00:00
sr chore(i18n): update locales 2018-01-25 23:26:24 +00:00
sv chore(i18n): update locales 2018-01-25 23:26:24 +00:00
tr chore(i18n): update locales 2018-01-25 23:26:24 +00:00
uk chore(i18n): update locales 2018-01-25 23:26:24 +00:00
zh chore(i18n): update locales 2018-01-25 23:26:24 +00:00
zh_TW chore(i18n): update locales 2018-01-25 23:26:24 +00:00
README.md Common reorg (#8025) 2016-09-16 17:18:07 +02:00

HabitRPG's translations are managed on Transifex.

The files in this folder are automatically pulled from Transifex, with exception of the original American-English strings which are managed directly through GitHub in locales/en.

When you need to change any text, edit only the files in locales/en. Do not edit files in any other locales directory. You do not need to request that your changes be translated; changes are automatically copied to Transifex on a regular basis.

If you want to help with translations, please first read Guidance for Linguists and note especially its information about the Translations Trello card.