-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Update asset path for flags in issue #172 #177
base: master
Are you sure you want to change the base?
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @RgnDunes, We need to build the i18nify-playground. In the current PR, I only made changes to the configuration file (vite.config.js) to address the flag image path issue, but I haven't included the built files. The reason I didn't include the build is that generally, we avoid committing build artifacts (like the dist folder) directly into the repository, as these can be generated during the deployment process. Would you prefer I include the built files in the PR, or should we rely on the existing build pipeline to generate them when the changes are merged? Looking forward to your guidance on this! |
@RashidHussain786 it's a simple react application running it locally I should see the changes working, how is it linked with the build files ? build is required only for deployment purpose and not for testing purpose. Once I spin up the server on local I should see the changes working |
Hi @RgnDunes, The issue occurs because the flag images are stored outside the Two options to fix:
Let me know your preference! |
Description
This PR addresses the issue of flag images not being displayed correctly. The changes made ensure that the correct paths are set for the flag assets, which allows them to be included in the build output. This resolves the visibility issue and improves user experience when selecting flags.
Changes Made
Type of change
How Has This Been Tested?
Verified that the correct flag images are displayed after the build process.
Tested on major browsers (Chrome and Firefox).
Confirmed the issue does not reoccur in a local development environment.
Is your change backward compatible ?
Tested on major browsers (Chrome, Firefox, Safari, IE) ?
Tested in a consumer application(s) ?
Additional Notes
The changes have been validated locally, and the flags now load as expected. If further adjustments are required, please let me know.
Checklist:
Reviewer Checklist
PR Title Format
Format:
(fix: fix flag image loading issue)
Types can be as follows:
feat
: (new feature for the user, not a new feature for build script)fix
: (bug fix for the user, not a fix to a build script)docs
: (changes to the documentation)style
: (formatting, missing semi colons, etc; no production code change)refactor
: (refactoring production code, eg. renaming a variable)test
: (adding missing tests, refactoring tests; no production code change)chore
: (updating grunt tasks etc; no production code change)