Skip to content

Commit fcc9466

Browse files
authored
Move intl polyfill to vendor dir + add license (zulip#618)
1 parent 6b598a4 commit fcc9466

File tree

3 files changed

+70
-2
lines changed

3 files changed

+70
-2
lines changed

src/ZulipMobile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Text } from 'react-native';
33
import { Provider } from 'react-redux';
44
import { IntlProvider } from 'react-intl';
55

6-
import './i18n/intl';
6+
import '../vendor/intl/intl';
77
import store, { restore } from './store';
88
import messages from './i18n/messages';
99
import LoadingScreen from './start/LoadingScreen';

vendor/intl/LICENSE.txt

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2013 Andy Earnshaw
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.
22+
23+
24+
------------------------------------------------------------------------------
25+
Contents of the `locale-data` directory are a modified form of the Unicode CLDR
26+
data found at http://www.unicode.org/cldr/data/. It comes with the following
27+
license.
28+
29+
COPYRIGHT AND PERMISSION NOTICE
30+
31+
Copyright (c) 1991-2013 Unicode, Inc. All rights reserved. Distributed under
32+
the Terms of Use in http://www.unicode.org/copyright.html.
33+
34+
Permission is hereby granted, free of charge, to any person obtaining a copy of
35+
the Unicode data files and any associated documentation (the "Data Files") or
36+
Unicode software and any associated documentation (the "Software") to deal in
37+
the Data Files or Software without restriction, including without limitation
38+
the rights to use, copy, modify, merge, publish, distribute, and/or sell copies
39+
of the Data Files or Software, and to permit persons to whom the Data Files or
40+
Software are furnished to do so, provided that (a) the above copyright
41+
notice(s) and this permission notice appear with all copies of the Data Files
42+
or Software, (b) both the above copyright notice(s) and this permission notice
43+
appear in associated documentation, and (c) there is clear notice in each
44+
modified Data File or in the Software as well as in the documentation
45+
associated with the Data File(s) or Software that the data or software has been
46+
modified.
47+
48+
THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
49+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
50+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD
51+
PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN
52+
THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL
53+
DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
54+
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
55+
OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA FILES OR
56+
SOFTWARE.
57+
58+
Except as contained in this notice, the name of a copyright holder shall not be
59+
used in advertising or otherwise to promote the sale, use or other dealings in
60+
these Data Files or Software without prior written authorization of the
61+
copyright holder.
62+
63+
Unicode and the Unicode logo are trademarks of Unicode, Inc. in the United
64+
States and other countries. All third party trademarks referenced herein are
65+
the property of their respective owners.
66+

src/i18n/intl.js renamed to vendor/intl/intl.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)