Files
angular/integration/ivy-i18n/e2e/en/app.e2e-spec.ts
Pete Bacon Darwin 72f534f7f8 feat(localize): support merging multiple translation files (#36792)
Previously only one translation file per locale could be loaded.

Now the user can specify multiple files per locale, and the translations
from each of these files will be merged together by message id.
The merging is on a first-wins approach. So if to you have three files
to be merged:

```
['a.xlf', 'b.xmb', 'c.json']
```

Then any message from `a.xlf` will be used rather than a message from `b.xmb`
or `c.json` and so on. In practice this means that you should put the files
in order of most important first, with "fallback" translations later.

PR Close #36792
2020-05-01 09:46:12 -07:00

31 lines
807 B
TypeScript

import {AppPage} from '../app.po';
describe('cli-hello-world-ivy App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
page.navigateTo();
});
it('should display title', () => {
expect(page.getHeading()).toEqual('Hello cli-hello-world-ivy-compat!');
});
it('should display welcome message', () => {
expect(page.getParagraph('message')).toEqual('Welcome to the i18n app.');
});
it('should display extra message', () => {
expect(page.getParagraph('extra')).toEqual('Extra message');
});
it('should display the locale', () => {
expect(page.getParagraph('locale')).toEqual('en-US');
});
it('the date pipe should show the localized month', () => {
page.navigateTo();
expect(page.getParagraph('date')).toEqual('January');
});
});