Skip to content

Commit

Permalink
Mark v1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbruxelles committed Oct 30, 2023
1 parent 7a6381d commit 2c28bc2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
> breaking changes and/or new features that you need to implement in your
> project.
## 1.4.1 (October, 2023)

- Ignore `data-si18n` attributes with no value.
- Functions (`translate` and `callback`) are excluded from the result of the
`toJSON` method because they are not necessary.

## 1.4.0 (March 4, 2023)

- Add a `reloadPage` option to reload the page when the language is changed.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "si18n.js",
"version": "1.4.0",
"version": "1.4.1",
"description": "A simple and lightweight way to integrate internationalization on a small web site project.",
"main": "./si18n.js",
"directories": {
Expand Down
4 changes: 2 additions & 2 deletions src/si18n.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* @license si18n.js - v1.4.0
* @license si18n.js - v1.4.1
* Copyright (c) José dBruxelles <jd.bruxelles.dev/c>.
*
* This source code is licensed under the MIT license found in the
Expand All @@ -9,7 +9,7 @@
* Make translation management easier and more efficient.
*/
export default class Si18n {
static version = "1.4.0";
static version = "1.4.1";
#noop() {} // Empty function to avoid undefined paramaters.
#isInitialized = false;
#options = {
Expand Down
2 changes: 1 addition & 1 deletion website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1 data-si18n="good_morning"></h1>
&lt;!-- (?target=es2015|es2022|esnext) --&gt;
&lt;script type="module" src="https://esm.sh/si18n.js@latest"&gt;&lt;/script&gt;

&lt;script type="module" src="https://cdn.jsdelivr.net/npm/si18n.js@1.4.0/+esm"&gt;&lt;/script&gt;
&lt;script type="module" src="https://cdn.jsdelivr.net/npm/si18n.js@1.4.1/+esm"&gt;&lt;/script&gt;

&lt;!-- UNPKG --&gt;
&lt;script type="module"&gt;
Expand Down

0 comments on commit 2c28bc2

Please sign in to comment.