implement /api/translate route
This commit is contained in:
1 parent
8fcd23e684
commit
9bca75bd62
2 files changed
+44
-10
No files matched your search
@@ -206,16 +206,6 @@ suite('Unit Tests', () => {
|
||||
|
||||
});
|
||||
|
||||
test('Translate { Tea time is usually around 4 or 4.30. } to American English', done => {
|
||||
|
||||
const string = 'Tea time is usually around 4 or 4.30.';
|
||||
const result = translator.translateBritish(string);
|
||||
|
||||
assert.equal(result, 'Tea time is usually around 4 or <span class="highlight">4:30</span>.');
|
||||
done();
|
||||
|
||||
});
|
||||
|
||||
test('Highlight differences { Mangoes are my favorite fruit. } when translated to British English', done => {
|
||||
|
||||
const string = 'Mangoes are my favorite fruit.';
|
||||
|
||||
Reference in new issue
Block a user