Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Tests completed in 22 milliseconds.
87 tests of 87 passed, 0 failed.
- Translator: api definition (0, 5, 5)Rerun
- Translator is defined
- Translator.trans is a function
- Translator.transChoice is a function
- Translator.add is a function
- Translator.fromJSON is a function
- Translator: add() (0, 1, 1)Rerun
- The add method returns a Translator
- Translator: trans() (0, 11, 11)Rerun
- Returns the correct message for the given key
- Returns the correct message for the given key
- Returns the correct message for the given key
- Empty key returns empty message
- Unknown key returns the key as message
- Returns the message with correct replaces
- Returns the message with correct replaces
- Returns the message with correct repeat replaces
- An empty string translation should return the empty string and not the key.
- Message not in the domain with args returns the processed message
- Returns the message with correct replaces with $0 present in target value
- Translator: transChoice() (0, 31, 31)Rerun
- Returns the correct message for the given key
- number = 0 returns the {0} part of the message
- number = 1 returns the [1,Inf[ part of the message
- number = 100 returns the [1,Inf[ part of the message
- number = 0 returns the {0} part of the message
- number = 1 returns the {1} part of the message
- number = 2 returns the [2,Inf[ part of the message
- number = 100 returns the [2,Inf[ part of the message
- number = -100000 returns the ]-Inf,0] part of the message
- number = -1 returns the ]-Inf,0] part of the message
- number = 0 returns the {0} part of the message
- number = 1 returns the {1} part of the message
- number = 1000 returns the [2,Inf[ part of the message
- number = 0 returns the {0} part of the message
- number = 1 returns the standard rule
- number = 10 returns the "a_few" part of the message
- number = 20 returns the [20,Inf] part of the message
- number = 0 returns the {0} part of the message
- number = 1 returns the [1,Inf[ part of the message
- number = 100 returns the [1,Inf[ part of the message
- number = 0 returns the {0} part of the message
- number = 1 returns the [1,Inf[ part of the message
- number = 100 returns the [1,Inf[ part of the message
- number = 1 returns the single available translation
- number = 2 returns the single available translation
- number = 0 returns the {0} part of the message
- number = 0 returns the [0, 1] part of the message
- number = 1 returns the [0, 1] part of the message
- number = 5 returns the ]1,Inf[ part of the message
- number = 10 returns the [0,Inf[ part of the message
- number = 10 returns the [0,Inf[ part of the message
- Translator: guesses domains if not specified (0, 8, 8)Rerun
- Returns the first guessed message corresponding to the given key
- Guesser does not impact basic usage of get
- Returns the correct guessed message
- Returns the key as the key cannot be guessed
- Returns the correct guessed message
- Returns the correct guessed message
- Returns the key as it does not exist in the given domain
- okay
- Translator: loads data from JSON string (0, 4, 4)Rerun
- JSON parser processes locale from valid JSON string
- JSON parser processes messages from valid JSON string
- JSON parser processes messages from valid JSON string
- JSON parser processes messages from valid JSON string
- Translator: loads data from JSON object literal (0, 6, 6)Rerun
- JSON parser processes locale from valid object literal
- JSON parser processes messages from valid object literal
- JSON parser processes messages from valid object literal
- JSON parser processes messages from valid object literal
- okay
- okay
- Translator: deals with multiple locales (0, 3, 3)Rerun
- okay
- okay
- okay
- Translator: uses fallback if the given locale does not contain the message (0, 4, 4)Rerun
- okay
- okay
- okay
- okay
- Translator: retry on fallback when locale exist but not the domain (0, 5, 5)Rerun
- okay
- okay
- okay
- okay
- okay
- Translator: gets the current locale using the `lang` attribute on the `html` tag (0, 1, 1)Rerun
- okay
- Translator: finds longer locale names (0, 1, 1)Rerun
- okay
- Translator: searches in part domain, if not exists in full domain (0, 2, 2)Rerun
- okay
- okay
- Translator: searches in fallback domain, if not exists in full or part domain (0, 2, 2)Rerun
- okay
- okay
- Translator: works with given optional parameters (0, 2, 2)Rerun
- okay
- okay
- Translator: searches in country fallback, if not exists in full domain (0, 1, 1)Rerun
- okay