Add Romanian Diceware wordlist support (#2228)

This commit is contained in:
Leendert de Borst
2026-07-03 12:36:18 +02:00
parent 15e99ca9df
commit cc2e555aba
3 changed files with 5 additions and 1 deletions

View File

@@ -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', () => {

View File

@@ -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.

View File

@@ -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