diff --git a/docs/source/contributing/localization.rst b/docs/source/contributing/localization.rst index 0148b8170..21cd330e4 100644 --- a/docs/source/contributing/localization.rst +++ b/docs/source/contributing/localization.rst @@ -48,6 +48,11 @@ Extraction .. note:: The json keys should be sorted alphabetically. You can use `jsonabc `__ to sort the keys. + .. attention:: Due to the integration with Crowdin, it is important to only add strings to the `en.json` file, + and to not modify any other language files. After the PR is merged, the translations can take place + on `CrowdIn `__. Once the translations are complete, a PR will be made + to merge the translations into Sunshine. + - Use the string in a Vue component. .. code-block:: html @@ -101,3 +106,8 @@ Extraction .. code-block:: bash python ./scripts/_locale.py --compile + + .. attention:: Due to the integration with Crowdin, it is important to not include any extracted or compiled files in + Pull Requests. The files are automatically generated and updated by the workflow. Once the PR is merged, the + translations can take place on `CrowdIn `__. Once the translations are + complete, a PR will be made to merge the translations into Sunshine. diff --git a/src_assets/common/assets/web/pin.html b/src_assets/common/assets/web/pin.html index 7acaf5908..d89132067 100644 --- a/src_assets/common/assets/web/pin.html +++ b/src_assets/common/assets/web/pin.html @@ -50,12 +50,12 @@ if (response.status.toString().toLowerCase() === "true") { document.querySelector( "#status" - ).innerHTML = ``; + ).innerHTML = ``; document.querySelector("#pin-input").value = ""; } else { document.querySelector( "#status" - ).innerHTML = ``; + ).innerHTML = ``; } }); }); diff --git a/src_assets/common/assets/web/public/assets/locale/en.json b/src_assets/common/assets/web/public/assets/locale/en.json index 586e811c1..6fa1f3a04 100644 --- a/src_assets/common/assets/web/public/assets/locale/en.json +++ b/src_assets/common/assets/web/public/assets/locale/en.json @@ -336,6 +336,8 @@ "success_msg": "Password has been changed successfully! This page will reload soon, your browser will ask you for the new credentials." }, "pin": { + "pair_failure": "Pairing Failed: Check if the PIN is typed correctly", + "pair_success": "Success! Please check Moonlight to continue", "pin_pairing": "PIN Pairing", "send": "Send", "warning_msg": "Make sure you have access to the client you are pairing with. This software can give total control to your computer, so be careful!"