Skip to content

Commit

Permalink
Added header licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
benatespina committed Jun 25, 2018
1 parent 051c8c7 commit 5096aea
Show file tree
Hide file tree
Showing 15 changed files with 135 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/component/BrowserIntlProvider.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This file is part of the ReactI18nRouting package.
*
* Copyright (c) 2018-present Friends Of ECMAScript
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

import React from 'react';
import {IntlProvider} from 'react-intl';
import PropTypes from 'prop-types';
Expand Down
9 changes: 9 additions & 0 deletions src/component/FormattedReactRouter.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This file is part of the ReactI18nRouting package.
*
* Copyright (c) 2018-present Friends Of ECMAScript
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

import React from 'react';
import {Link, NavLink, Redirect} from 'react-router-dom';
import {injectIntl} from 'react-intl';
Expand Down
9 changes: 9 additions & 0 deletions src/component/bridges/InMemoryBrowserIntlProvider.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This file is part of the ReactI18nRouting package.
*
* Copyright (c) 2018-present Friends Of ECMAScript
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

import React from 'react';
import PropTypes from 'prop-types';

Expand Down
9 changes: 9 additions & 0 deletions src/component/bridges/LocalStorageBrowserIntlProvider.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This file is part of the ReactI18nRouting package.
*
* Copyright (c) 2018-present Friends Of ECMAScript
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

import React from 'react';
import PropTypes from 'prop-types';

Expand Down
9 changes: 9 additions & 0 deletions src/component/bridges/ReduxBrowserIntlProvider.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This file is part of the ReactI18nRouting package.
*
* Copyright (c) 2018-present Friends Of ECMAScript
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

import React from 'react';
import {connect} from 'react-redux';
import {ConnectedRouter} from 'react-router-redux';
Expand Down
9 changes: 9 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This file is part of the ReactI18nRouting package.
*
* Copyright (c) 2018-present Friends Of ECMAScript
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

import BrowserIntlProvider from './component/BrowserIntlProvider.js';
import InMemoryBrowserIntlProvider from './component/bridges/InMemoryBrowserIntlProvider.js';
import LocalStorageBrowserIntlProvider from './component/bridges/LocalStorageBrowserIntlProvider.js';
Expand Down
9 changes: 9 additions & 0 deletions src/languageStrategy/defaultUnprefixed.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This file is part of the ReactI18nRouting package.
*
* Copyright (c) 2018-present Friends Of ECMAScript
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

import {formatRoute} from 'react-router-named-routes';

import {getLocale} from './../locale.js';
Expand Down
9 changes: 9 additions & 0 deletions src/languageStrategy/pathFromRouteForPathsAndLocale.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This file is part of the ReactI18nRouting package.
*
* Copyright (c) 2018-present Friends Of ECMAScript
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

export default (defaultLocale, pathFromRoute) => (
paths,
locale,
Expand Down
9 changes: 9 additions & 0 deletions src/languageStrategy/subdomainBased.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This file is part of the ReactI18nRouting package.
*
* Copyright (c) 2018-present Friends Of ECMAScript
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

import {formatRoute} from 'react-router-named-routes';

import {getLocale} from './../locale.js';
Expand Down
9 changes: 9 additions & 0 deletions src/locale.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This file is part of the ReactI18nRouting package.
*
* Copyright (c) 2018-present Friends Of ECMAScript
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

let currentLocale = null;

export const setLocale = locale => {
Expand Down
9 changes: 9 additions & 0 deletions src/renderTranslatedRoutes.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This file is part of the ReactI18nRouting package.
*
* Copyright (c) 2018-present Friends Of ECMAScript
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

import flatMap from 'lodash.flatmap';

// eslint-disable-next-line max-params
Expand Down
9 changes: 9 additions & 0 deletions tests/languageStrategy/defaultUnprefixed.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This file is part of the ReactI18nRouting package.
*
* Copyright (c) 2018-present Friends Of ECMAScript
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

import React from 'react';

import defaultUnprefixed from './../../src/languageStrategy/defaultUnprefixed.js';
Expand Down
9 changes: 9 additions & 0 deletions tests/languageStrategy/pathFromRouteForPathsAndLocale.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This file is part of the ReactI18nRouting package.
*
* Copyright (c) 2018-present Friends Of ECMAScript
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

import pathFromRouteForPathsAndLocale from './../../src/languageStrategy/pathFromRouteForPathsAndLocale.js';

test('It returns a function instance', () => {
Expand Down
9 changes: 9 additions & 0 deletions tests/languageStrategy/subdomainBased.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This file is part of the ReactI18nRouting package.
*
* Copyright (c) 2018-present Friends Of ECMAScript
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

import React from 'react';

import subdomainBased from './../../src/languageStrategy/subdomainBased.js';
Expand Down
9 changes: 9 additions & 0 deletions tests/locale.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This file is part of the ReactI18nRouting package.
*
* Copyright (c) 2018-present Friends Of ECMAScript
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

import {getLocale, setLocale} from './../src/locale.js';

test('It can be mutable', () => {
Expand Down

0 comments on commit 5096aea

Please sign in to comment.