mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
ff003b137a
Thanks @rschamp!
21 lines
680 B
JavaScript
21 lines
680 B
JavaScript
/*
|
|
* spot check that each language has values for the string id keys on About page
|
|
* that are contained in English (i.e. make sure strings will show up, not ids")
|
|
*/
|
|
var tap = require('tap');
|
|
var languages = require('../../languages.json');
|
|
window = {};
|
|
require('../../intl/about.intl.js');
|
|
|
|
tap.test('spotCheckAboutStrings', function (t) {
|
|
var isoCodes = Object.keys(languages);
|
|
var keysToCheck = Object.keys(window._messages['en']).sort();
|
|
for (var i in isoCodes) {
|
|
t.same(
|
|
Object.keys(window._messages[isoCodes[i]]).sort(),
|
|
keysToCheck,
|
|
'check About keys for language ' + isoCodes[i]
|
|
);
|
|
}
|
|
t.end();
|
|
});
|