Skip to content

Commit

Permalink
Merge branch 'main' into users/ramukaritik/NPS-Survey-Form
Browse files Browse the repository at this point in the history
  • Loading branch information
ritikramuka authored Jul 11, 2024
2 parents 91d3f45 + 1dcf63c commit 42f7f76
Show file tree
Hide file tree
Showing 24 changed files with 1,624 additions and 21,108 deletions.
4 changes: 4 additions & 0 deletions gulpfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import gulpWebpack from 'webpack-stream';
import webpack from 'webpack';
import vsce from '@vscode/vsce';
import yargs from 'yargs';
import plumber from 'gulp-plumber';
const argv = yargs(process.argv.slice(2)).argv; // skip 'node' and 'gulp.js' args

import fetch from 'node-fetch';
Expand Down Expand Up @@ -79,6 +80,7 @@ function setBuildRegion() {
function compile() {
return gulp
.src('src/**/*.ts')
.pipe(plumber()) // Added error handling
.pipe(gulpWebpack(nodeConfig, webpack))
.pipe(replace("src\\\\client\\\\lib\\\\", "src/client/lib/")) // Hacky fix: vscode-nls-dev/lib/webpack-loader uses Windows style paths when built on Windows, breaking localization on Linux & Mac
.pipe(gulp.dest(distdir));
Expand All @@ -87,6 +89,7 @@ function compile() {
function compileWeb() {
return gulp
.src('src/web/**/*.ts')
.pipe(plumber()) // Added error handling
.pipe(gulpWebpack(webConfig, webpack))
.pipe(replace("src\\\\client\\\\lib\\\\", "src/client/lib/")) // Hacky fix: vscode-nls-dev/lib/webpack-loader uses Windows style paths when built on Windows, breaking localization on Linux & Mac
.pipe(gulp.dest(path.resolve(`${distdir}/web`)));
Expand All @@ -96,6 +99,7 @@ function compileWeb() {
function compileWorker() {
return gulp
.src(["src/web/**/*.ts"])
.pipe(plumber()) // Added error handling
.pipe(gulpWebpack(webWorkerConfig, webpack))
.pipe(gulp.dest(path.resolve(`${distdir}/web`)));
}
Expand Down
15 changes: 15 additions & 0 deletions l10n/bundle.l10n.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,12 @@
"Hi! Instantly generate code for Power Pages sites by typing in what you need. To start using Copilot, log in to your Microsoft account.": "Hi! Instantly generate code for Power Pages sites by typing in what you need. To start using Copilot, log in to your Microsoft account.",
"Login": "Login",
"Hi": "Hi",
"In your own words, describe what you need. You can get help with writing code for Power Pages sites in HTML, CSS, and JS languages.": "In your own words, describe what you need. You can get help with writing code for Power Pages sites in HTML, CSS, and JS languages.",
"To know more, see <a href=\"https://go.microsoft.com/fwlink/?linkid=2206366\">Copilot in Power Pages documentation.": "To know more, see <a href=\"https://go.microsoft.com/fwlink/?linkid=2206366\">Copilot in Power Pages documentation.",
"Working on it...": "Working on it...",
"Copied to clipboard!": "Copied to clipboard!",
"What do you need help with?": "What do you need help with?",
"Make sure AI-generated content is accurate and appropriate before using. <a href=\"https://go.microsoft.com/fwlink/?linkid=2240145\">Learn more</a> | <a href=\"https://go.microsoft.com/fwlink/?linkid=2189520\">View\n terms</a>": "Make sure AI-generated content is accurate and appropriate before using. <a href=\"https://go.microsoft.com/fwlink/?linkid=2240145\">Learn more</a> | <a href=\"https://go.microsoft.com/fwlink/?linkid=2189520\">View\n terms</a>",
"Let Copilot help you code": "Let Copilot help you code",
"Whether it’s HTML, CSS, JS, or Liquid code, just describe what you need and let AI build it for you. ": "Whether it’s HTML, CSS, JS, or Liquid code, just describe what you need and let AI build it for you. ",
"Try Copilot for Power Pages": "Try Copilot for Power Pages",
Expand All @@ -67,6 +69,10 @@
"Tell us more.": "Tell us more.",
"Try and be as specific as possible. Your feedback will be used to improve Copilot. <a href=\"https://privacy.microsoft.com/en-US/data-privacy-notice\"> View privacy details </a>": "Try and be as specific as possible. Your feedback will be used to improve Copilot. <a href=\"https://privacy.microsoft.com/en-US/data-privacy-notice\"> View privacy details </a>",
"Submit": "Submit",
"Please provide a prompt to get started.\n You can get help with writing code for Power Pages sites in HTML, CSS, and JS languages.": "Please provide a prompt to get started.\n You can get help with writing code for Power Pages sites in HTML, CSS, and JS languages.",
"Authentication failed. Please try again.": "Authentication failed. Please try again.",
"Copilot is not available. Please contact your administrator.": "Copilot is not available. Please contact your administrator.",
"Active auth profile is not found or has expired. Please try again.": "Active auth profile is not found or has expired. Please try again.",
"Select Folder for new PCF Control/Do not translate 'PCF' as it is a product name.": {
"message": "Select Folder for new PCF Control",
"comment": [
Expand Down Expand Up @@ -104,6 +110,7 @@
"{0} represents the name of the file"
]
},
"Some references might be broken. Please check diagnostics for details.": "Some references might be broken. Please check diagnostics for details.",
"Enter the name of the web template": "Enter the name of the web template",
"Please enter a name for the web template.": "Please enter a name for the web template.",
"A webtemplate with the same name already exists. Please enter a different name.": "A webtemplate with the same name already exists. Please enter a different name.",
Expand All @@ -119,6 +126,12 @@
"No parent pages found for adding webfile": "No parent pages found for adding webfile",
"File(s) already exist. No new files to add": "File(s) already exist. No new files to add",
"Web files": "Web files",
"Adding {0} web file(s). Existing files will be skipped/{0} represents the number of web files": {
"message": "Adding {0} web file(s). Existing files will be skipped",
"comment": [
"{0} represents the number of web files"
]
},
"Webfile(s) added successfully": "Webfile(s) added successfully",
"Page Template name cannot be empty.": "Page Template name cannot be empty.",
"New Page Template": "New Page Template",
Expand All @@ -127,6 +140,8 @@
"A page template with the same name already exists. Please enter a different name.": "A page template with the same name already exists. Please enter a different name.",
"No Website Data Found in Current Directory. Please switch to a directory that contains the PAC downloaded website data to continue.": "No Website Data Found in Current Directory. Please switch to a directory that contains the PAC downloaded website data to continue.",
"No workspace folder found": "No workspace folder found",
"Operation failed. See output panel for details.": "Operation failed. See output panel for details.",
"Show Output Panel": "Show Output Panel",
"New Content Snippet": "New Content Snippet",
"Add content snippet name (name should be unique)": "Add content snippet name (name should be unique)",
"Select Type": "Select Type",
Expand Down
33 changes: 33 additions & 0 deletions loc/translations-export/vscode-powerplatform.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,29 @@
<trans-unit id="++CODE++8d35e64354d3db3df1df4ef8e6068b6b9dd58514fcf980f7071e10ed160db95a">
<source xml:lang="en">AI-generated content can contain mistakes</source>
</trans-unit>
<trans-unit id="++CODE++5f9c7a14b3c0c2971e4a8f4471af5071dbd3cf37f96fa09fe1257124c0b7e921">
<source xml:lang="en">Active auth profile is not found or has expired. Please try again.</source>
</trans-unit>
<trans-unit id="++CODE++5d8300ceca093c3e9b111bbcadfac87c89ca4274fc9a7fe3267f037a5ab4ceac">
<source xml:lang="en">Active auth profile is not found or has expired. To create a new auth profile, enter the environment URL.</source>
</trans-unit>
<trans-unit id="++CODE++b544cb198e99ff113ac41467fc99191f11916287ccdb1ae619dba61dd6bbeff6">
<source xml:lang="en">Add content snippet name (name should be unique)</source>
</trans-unit>
<trans-unit id="++CODE++e7027d80d4c05ae510621f20062db71d499cbd4f8760e3076a3530220fbf0a18">
<source xml:lang="en">Adding {0} web file(s). Existing files will be skipped</source>
<note>{0} represents the number of web files</note>
</trans-unit>
<trans-unit id="++CODE++3f82badfcbab5f7d6e5a4886a6df032cc28cdf5fe200a85bafd86101efe126c9">
<source xml:lang="en">Are you sure you want to clear all the Auth Profiles?</source>
</trans-unit>
<trans-unit id="++CODE++b30fa58bd8e7489da154905f0c0d711e956f3841cf86157ca1cdd80d2b5d5499">
<source xml:lang="en">Are you sure you want to delete the Auth Profile {0}-{1}?</source>
<note>{0} is the user name, {1} is the URL of environment of the auth profile</note>
</trans-unit>
<trans-unit id="++CODE++4190475b52357e7ad3da76828784a5b9f291519e331b0c0e71f5d14e946bbc4b">
<source xml:lang="en">Authentication failed. Please try again.</source>
</trans-unit>
<trans-unit id="++CODE++a57666e58a53eea23667fddf0a7c41bdc64abfc5eae94637e88388a6b139b314">
<source xml:lang="en">Authorization Failed. Please run again to authorize it</source>
</trans-unit>
Expand Down Expand Up @@ -75,6 +85,9 @@
<trans-unit id="++CODE++344de0f92ba2ec8b690a0454eef93ef33d950e4bd785171eb060164a714ed419">
<source xml:lang="en">Copilot In Power Pages</source>
</trans-unit>
<trans-unit id="++CODE++6f6ff1fc17821e030a88681092957c279c6a5b1177f940017a4c5fd99fd1ea7b">
<source xml:lang="en">Copilot is not available. Please contact your administrator.</source>
</trans-unit>
<trans-unit id="++CODE++b749e205302cc21952a1e9646569ca0af9017cc5f39dd741830551bdd4ae823e">
<source xml:lang="en">Copy to clipboard</source>
</trans-unit>
Expand Down Expand Up @@ -168,6 +181,9 @@ The {3} represents Solution's Type (Managed or Unmanaged), but that test is loca
<trans-unit id="++CODE++1d9bc50f05b58d430726840f771cd25056be57873eb33a5d6aeedfff2ca7e2db">
<source xml:lang="en">Hi! Your Microsoft account doesn’t currently support Copilot. Contact your admin for details.</source>
</trans-unit>
<trans-unit id="++CODE++08295f3385931e35c850b945e2ae04882452c4bf0dd575f70e95aaa6ed00daa9">
<source xml:lang="en">In your own words, describe what you need. You can get help with writing code for Power Pages sites in HTML, CSS, and JS languages.</source>
</trans-unit>
<trans-unit id="++CODE++e992151b1efc99f93484c7d7f3076b66ab072a8af2383e96104cc597c971339c">
<source xml:lang="en">Insert code into editor</source>
</trans-unit>
Expand All @@ -187,6 +203,10 @@ The {3} represents Solution's Type (Managed or Unmanaged), but that test is loca
<trans-unit id="++CODE++9d6322c1f4d9d3f38aed8bfbe0b2bcadf66ad82c008476fa62541fa069138e94">
<source xml:lang="en">Login</source>
</trans-unit>
<trans-unit id="++CODE++1be32f89a3d1d98bb7011850e83b5753124d58f684bae063674bfdb106026e6d">
<source xml:lang="en">Make sure AI-generated content is accurate and appropriate before using. &lt;a href=&quot;https://go.microsoft.com/fwlink/?linkid=2240145&quot;&gt;Learn more&lt;/a&gt; | &lt;a href=&quot;https://go.microsoft.com/fwlink/?linkid=2189520&quot;&gt;View
terms&lt;/a&gt;</source>
</trans-unit>
<trans-unit id="++CODE++8f2de600bf940a26c63a7ac23984a12ca8970fcf1a85947aa5566c34e23eea07">
<source xml:lang="en">Managed</source>
</trans-unit>
Expand Down Expand Up @@ -247,6 +267,9 @@ The {3} represents Dataverse Environment's Organization ID (GUID)</note>
<trans-unit id="++CODE++dac0ee62a5197a3722a9e7e9e851e80504cced8a13ce8b17842d78e8313578c2">
<source xml:lang="en">Opening preview site...</source>
</trans-unit>
<trans-unit id="++CODE++5cac0147c19013eb88b1fc8dc0d066b48e9f5cfcdbc9737a29d544d9bd61db55">
<source xml:lang="en">Operation failed. See output panel for details.</source>
</trans-unit>
<trans-unit id="++CODE++d4dc9d620b68b70e7de4aeaa15e1d83dddb457c64a3cadb35cf1b55025ad194f">
<source xml:lang="en">PAC Telemetry disabled</source>
</trans-unit>
Expand All @@ -271,6 +294,10 @@ The {3} represents Dataverse Environment's Organization ID (GUID)</note>
<trans-unit id="++CODE++7f6276dc63b573d177b7d6e17f787b108e3c8c7d449324ac13a6d06b1be59d8e">
<source xml:lang="en">Please enter a name for the webpage.</source>
</trans-unit>
<trans-unit id="++CODE++f39f65c4f7d519a37b66a00d02a6def9e3721080363dae761b907793330333cd">
<source xml:lang="en">Please provide a prompt to get started.
You can get help with writing code for Power Pages sites in HTML, CSS, and JS languages.</source>
</trans-unit>
<trans-unit id="++CODE++1bac158cc07a75506df3774db0ad7c188c19ccad4943c4cf03da8b6700ef9ce4">
<source xml:lang="en">Power Pages Copilot is now connected to the environment: {0} : {1}</source>
<note>{0} represents the environment name</note>
Expand Down Expand Up @@ -311,6 +338,12 @@ The {3} represents Dataverse Environment's Organization ID (GUID)</note>
<trans-unit id="++CODE++d4e969ee5e3ea8fe5e7f9195be448fd5fd5d2cb6f487929c3e495cbbe7e8f1e8">
<source xml:lang="en">Selection is too large. Try making a shorter selection.</source>
</trans-unit>
<trans-unit id="++CODE++899fb203e6c2faac8093e21a2fa8db0d4b13d16ea5492461d8b72dbcee3ecf2a">
<source xml:lang="en">Show Output Panel</source>
</trans-unit>
<trans-unit id="++CODE++27dd8c8e67d15783f51c6b71ed60d5350731daa85b418f1e84c2e5828ae2d54e">
<source xml:lang="en">Some references might be broken. Please check diagnostics for details.</source>
</trans-unit>
<trans-unit id="++CODE++155f816c0407310c0dab222493370773e045ee7fe04e6c9a951b07f495531264">
<source xml:lang="en">Submit</source>
</trans-unit>
Expand Down
Loading

0 comments on commit 42f7f76

Please sign in to comment.