mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-07-31 09:17:11 -04:00
Add Romanian Diceware wordlist support (#2228)
This commit is contained in:
@@ -12,7 +12,7 @@ import {
|
||||
/** The identity generator's supported subset, used to exercise restricted matching. */
|
||||
const IDENTITY_CODES = ['da', 'de', 'en', 'es', 'fr', 'it', 'nl', 'ro', 'sv', 'ur', 'fa'];
|
||||
/** The Diceware passphrase wordlist subset (owned by the Rust core). */
|
||||
const DICEWARE_CODES = ['en', 'nl', 'de', 'fr', 'es', 'it'];
|
||||
const DICEWARE_CODES = ['en', 'nl', 'de', 'fr', 'es', 'it', 'ro'];
|
||||
|
||||
describe('Languages', () => {
|
||||
describe('normalizeLanguageCode', () => {
|
||||
|
||||
@@ -16,6 +16,9 @@ were collected by that project from the following upstream sources:
|
||||
| `fr.diceware` | French | https://github.com/ArthurPons/diceware-fr-alt |
|
||||
| `es.diceware` | Spanish | https://github.com/mir123/dadoware-bonito-es |
|
||||
| `it.diceware` | Italian | https://www.taringamberini.com/ |
|
||||
| `ro.diceware` | Romanian | Community contribution |
|
||||
|
||||
Refer to each upstream source for its specific license terms. If you redistribute
|
||||
these lists, preserve this attribution.
|
||||
|
||||
Files marked as "Community contribution" were contributed by members of the community. If you are the original author or know the original upstream source, please let us know so we can provide proper attribution.
|
||||
|
||||
@@ -18,6 +18,7 @@ static WORDLISTS: &[(&str, &str)] = &[
|
||||
("fr", include_str!("fr.diceware")),
|
||||
("es", include_str!("es.diceware")),
|
||||
("it", include_str!("it.diceware")),
|
||||
("ro", include_str!("ro.diceware")),
|
||||
];
|
||||
|
||||
/// Resolve a language code (case-insensitive) to its raw wordlist text, falling back to
|
||||
|
||||
Reference in New Issue
Block a user