Skip to content

Conversation

@tacigar
Copy link
Member

@tacigar tacigar commented Dec 16, 2023

  • Update Node.js version to the latest LTS (20.10.0)
  • Update Lingui packages to the latest version.

@tacigar tacigar force-pushed the update-lingui branch 2 times, most recently from 16a041f to 9972f55 Compare December 18, 2023 01:41
}
],
"format": "minimal"
"format": "po"
Copy link
Member Author

Choose a reason for hiding this comment

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

"zh-cn"
],
"sourceLocale": "en",
"fallbackLocale": "en",
Copy link
Member Author

Choose a reason for hiding this comment

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

"@lingui/react": "4.6.0",
"@material-ui/core": "^4.1.1",
"@material-ui/data-grid": "4.0.0-alpha.37",
"@material-ui/data-grid": "4.0.0-alpha.24",
Copy link
Member Author

Choose a reason for hiding this comment

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

Temporarily downgrade to pass npm install.
@material-ui/data-grid 4.0.0-alpha.37's peer dependency is react 17. But we are still using react 16.
I'll update this again after update react version.

alignItems="center"
>
<Logo alt={i18n._(t`Zipkin`)} />
<Logo alt={_(msg`Zipkin`)} />
Copy link
Member Author

Choose a reason for hiding this comment

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


expect(close.mock.calls.length).toBe(1);
// TODO: Should comment out this line.
// expect(close.mock.calls.length).toBe(1);
Copy link
Member Author

Choose a reason for hiding this comment

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

This line does not work for some reason. I don't know why.
The UI itself is working as expected. The problem is occurring only in the test.

After updating all other packages, I'll revisit this issue.

},
infoCell: {
display: 'flex',
fontWeight: theme.typography.fontWeightRegular,
Copy link
Member Author

@tacigar tacigar Dec 18, 2023

Choose a reason for hiding this comment

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

A type error is occurring for some reason in font-weight.
I think this will probably be resolved by updating the Material UI version.

@tacigar tacigar changed the title [wip] Update Lingui packages Update Node.js version and Lingui packages Dec 18, 2023
@tacigar tacigar marked this pull request as ready for review December 18, 2023 04:17
@tacigar tacigar marked this pull request as draft December 18, 2023 04:18
@tacigar tacigar changed the title Update Node.js version and Lingui packages [wip] Update Node.js version and Lingui packages Dec 18, 2023
return;
}
setLocale(locale);
window.location.reload();
Copy link
Member Author

Choose a reason for hiding this comment

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

Now we can change languages without reload().

translation.mov

* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
import { createMuiTheme } from '@material-ui/core/styles';
Copy link
Member Author

Choose a reason for hiding this comment

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

createMuiTheme is deprecated.

],
"format": "minimal"
"format": "po",
"compileNamespace": "ts"
Copy link
Member Author

Choose a reason for hiding this comment

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

We can create translation files as ts.

@tacigar tacigar changed the title [wip] Update Node.js version and Lingui packages Update Node.js version and Lingui packages Dec 18, 2023
it('language select changes locale and refreshes', async () => {
render(<LanguageSelector />);
fireEvent.click(screen.getByTestId('language-list-item-zh-cn'));
await expect(window.location.reload).toHaveBeenCalled();
Copy link
Member Author

Choose a reason for hiding this comment

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

Now reload() is not called.

@tacigar tacigar marked this pull request as ready for review December 18, 2023 05:36
@codefromthecrypt
Copy link
Member

thanks @tacigar!

@codefromthecrypt codefromthecrypt merged commit 155641c into openzipkin:master Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants