Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: netlify/netlify-identity-widget
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.9.0
Choose a base ref
...
head repository: netlify/netlify-identity-widget
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.9.1
Choose a head ref
  • 12 commits
  • 12 files changed
  • 3 contributors

Commits on Jul 28, 2020

  1. hungarian translation

    tomzorz committed Jul 28, 2020
    Copy the full SHA
    ebcf2c9 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8fca19a View commit details
  3. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3895f36 View commit details
  4. prettier complaints resolved

    tomzorz committed Jul 28, 2020
    Copy the full SHA
    4e8aa7d View commit details
  5. Copy the full SHA
    c54bfaf View commit details
  6. fixed a typo

    tomzorz committed Jul 28, 2020
    Copy the full SHA
    06f2218 View commit details
  7. Copy the full SHA
    0e4f728 View commit details

Commits on Jul 29, 2020

  1. fix: increase input size to avoid mobile zoom

    on iOS, inputs with font sizes below 16px are automatically zoomed in, which causes issues with page layouts and hides the close button for the widget modal. this change increases the input size to 16px to avoid the zoom on mobile devices
    
    fix #236
    jlengstorf committed Jul 29, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jlengstorf Jason Lengstorf
    Copy the full SHA
    c646b97 View commit details

Commits on Jul 30, 2020

  1. Copy the full SHA
    0cef321 View commit details
  2. Merge pull request #330 from tomzorz/master

    Feat: Hungarian translation
    cassidoo authored Jul 30, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    37e914b View commit details
  3. Merge pull request #334 from netlify/fix/mobile-zoom

    fix: increase input size to avoid mobile zoom
    cassidoo authored Jul 30, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    32de664 View commit details
  4. 1.9.1

    jlengstorf committed Jul 30, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jlengstorf Jason Lengstorf
    Copy the full SHA
    03088ee View commit details
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -7,6 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

## [v1.9.1](https://github.com/netlify/netlify-identity-widget/compare/v1.9.0...v1.9.1) - 2020-07-30

### Merged

- fix: increase input size to avoid mobile zoom [`#334`](https://github.com/netlify/netlify-identity-widget/pull/334)
- Feat: Hungarian translation [`#330`](https://github.com/netlify/netlify-identity-widget/pull/330)

### Fixed

- fix: increase input size to avoid mobile zoom [`#236`](https://github.com/netlify/netlify-identity-widget/issues/236)

### Commits

- hungarian translation [`ebcf2c9`](https://github.com/netlify/netlify-identity-widget/commit/ebcf2c9ed60e919846176cdcf54fad694b93cf13)
- removed '...'s as they're added outside of the translation files [`0e4f728`](https://github.com/netlify/netlify-identity-widget/commit/0e4f728b138928a99885f5354391014ed902dc58)
- fixed indentation and capitalization [`c54bfaf`](https://github.com/netlify/netlify-identity-widget/commit/c54bfaf9c5936f18e0b018af71c5973c5742b552)

## [v1.9.0](https://github.com/netlify/netlify-identity-widget/compare/v1.8.1...v1.9.0) - 2020-07-29

### Merged
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "netlify-identity-widget",
"description": "Netlify Identity widget for easy integration",
"version": "1.9.0",
"version": "1.9.1",
"author": "Matt Biilmann <matt@netlify.com>",
"bugs": {
"url": "https://github.com/netlify/netlify-identity-widget/issues"
2 changes: 1 addition & 1 deletion releases/v1/index.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions releases/v1/netlify-identity-widget.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion releases/v1/netlify-identity-widget.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions releases/v1/netlify-identity.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion releases/v1/netlify-identity.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/modal.css
Original file line number Diff line number Diff line change
@@ -346,7 +346,7 @@
background: #fff;
color: var(--baseColor);
box-shadow: none;
font-size: 14px;
font-size: 16px;
font-weight: 500;
line-height: 24px;
transition: box-shadow ease-in-out 0.15s;
1 change: 1 addition & 0 deletions src/index.ejs
Original file line number Diff line number Diff line change
@@ -309,6 +309,7 @@
<option value="en">English</option>
<option value="fr">Fran&ccedil;ais</option>
<option value="es">Espa&ntilde;ol</option>
<option value="hu">Magyar</option>
</select>
</div>
</div>
39 changes: 39 additions & 0 deletions src/translations/hu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"log_in": "Bejelentkezés",
"log_out": "Kijelentkezés",
"logged_in_as": "Bejelentkezve mint",
"logged_in": "Bejelentkezve",
"logging_in": "Bejelentkezés",
"logging_out": "Kijelentkezés",
"sign_up": "Regisztráció",
"signing_up": "Regisztrálás",
"forgot_password": "Elfelejtette a jelszavát?",
"recover_password": "Jelszó visszaállítása",
"send_recovery_email": "Jelszópótló levél küldése",
"sending_recovery_email": "Jelszópótló levél küldése",
"never_mind": "Mégsem",
"update_password": "Új jelszó beállítása",
"updating_password": "Új jelszó beállítása",
"complete_your_signup": "Regisztráció befejezése",
"site_url_title": "Fejlesztői Beállítások",
"site_url_link_text": "Localhost URL törlése",
"site_url_message": "Úgy néz ki egy helyi szervert futtat. Kérjük adja meg a Netlify oldala URL-jét.",
"site_url_label": "Adja meg a Netlify oldala URL-jét",
"site_url_placeholder": "a Netlify oldala URL-je",
"site_url_submit": "URL beállítása",
"message_confirm": "Elküldtünk egy megerősítő levelet e-mailben, kérjük kattintson a linkre a levélben a folytatáshoz.",
"message_password_mail": "Elküldtünk egy jelszópótló levelet e-mailben, kérjük kövesse a linket a levélben a jelszava visszaállításához.",
"message_email_changed": "Az e-mail címét frissítettük!",
"message_verfication_error": "Probléma történt a fiókja megerősítése közben. Kérjük próbálja újra, vagy vegye fel a kapcsolatot egy adminisztrátorral.",
"message_signup_disabled": "A nyilvános regisztráció nincs engedélyezve. Vegye fel a kapcsolatot egy adminisztrátorral és kérjen meghívót.",
"form_name_placeholder": "Név",
"form_email_label": "Adja meg az e-mail címét",
"form_name_label": "Adja meg a nevét",
"form_email_placeholder": "E-mail",
"form_password_label": "Adja meg a jelszavát",
"form_password_placeholder": "Jelszó",
"coded_by": "Fejlesztette a Netlify",
"No user found with this email": "Nem található fiók ezzel az e-mail címmel",
"Invalid Password": "Helytelen Jelszó",
"continue_with": "Bejelentkezés ezzel:"
}
3 changes: 2 additions & 1 deletion src/translations/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import * as en from "./en.json";
import * as fr from "./fr.json";
import * as es from "./es.json";
import * as hu from "./hu.json";

export const defaultLocale = "en";
const translations = { en, fr, es };
const translations = { en, fr, es, hu };

export const getTranslation = (key, locale = defaultLocale) => {
const translated = translations[locale] && translations[locale][key];
7 changes: 7 additions & 0 deletions src/translations/index.test.js
Original file line number Diff line number Diff line change
@@ -18,6 +18,11 @@ describe("translations", () => {
expect(getTranslation("log_in", "fr")).toEqual("Connexion");
});

it("should return translation for 'hu' locale", () => {
const { getTranslation } = require("./");
expect(getTranslation("log_in", "hu")).toEqual("Bejelentkezés");
});

it("should return translation for 'es' locale", () => {
const { getTranslation } = require("./");
expect(getTranslation("log_in", "es")).toEqual("Iniciar sesión");
@@ -31,11 +36,13 @@ describe("translations", () => {
it("should default to 'en' on missing key", () => {
jest.mock("./en.json", () => ({ log_in: "Log in" }));
jest.mock("./fr.json", () => ({}));
jest.mock("./hu.json", () => ({}));
jest.mock("./es.json", () => ({}));

const { getTranslation } = require("./");
expect(getTranslation("log_in")).toEqual("Log in");
expect(getTranslation("log_in", "fr")).toEqual("Log in");
expect(getTranslation("log_in", "hu")).toEqual("Log in");
expect(getTranslation("log_in", "es")).toEqual("Log in");
});
});