Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(packages/sui-i18n): import node-polyglot 0.43 to our package #1528

Merged
merged 7 commits into from
Nov 3, 2022

Conversation

jordevo
Copy link
Contributor

@jordevo jordevo commented Oct 22, 2022

Description

Import node-polyglot 0.43 code to our package.

Polyglot adapter is already being fully tested:
https://github.com/SUI-Components/sui/blob/master/packages/sui-i18n/test/polyglotSpec.js#L53

Related Issue

Implements #1468 .

Example

Comment on lines +1 to +4
// BSD 2-Clause License

// Copyright (c) 2012, Airbnb
// All rights reserved.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ license notice kept here as per:

https://github.com/airbnb/polyglot.js/blob/master/LICENSE

  1. Redistributions of source code must retain the above copyright notice, this
    list of conditions and the following disclaimer.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👉 A -personal- suggestion regarding this:

Would it make sense to have a specific file to maintain all third-party license notices? Relating each notice to the specific dependency that requires it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point! not sure what's the best way to deal with this in our packages.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could open an issue to discuss this point and avoid blocking this PR. What do you think?

Copy link
Contributor Author

@jordevo jordevo Nov 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

totally agree!

Just opened it: #1530

Comment on lines +1 to +4
// BSD 2-Clause License

// Copyright (c) 2012, Airbnb
// All rights reserved.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👉 A -personal- suggestion regarding this:

Would it make sense to have a specific file to maintain all third-party license notices? Relating each notice to the specific dependency that requires it.

Comment on lines +1 to +4
// BSD 2-Clause License

// Copyright (c) 2012, Airbnb
// All rights reserved.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could open an issue to discuss this point and avoid blocking this PR. What do you think?

@jordevo jordevo merged commit a0b4d4c into master Nov 3, 2022
@jordevo jordevo deleted the feat-i18n-move-polyglot-dep-in branch November 3, 2022 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants