Git Product home page Git Product logo

Comments (13)

viandwi24 avatar viandwi24 commented on June 19, 2024 1

did you add a new language with code "ko" ?

from nuxt3-awesome-starter.

viandwi24 avatar viandwi24 commented on June 19, 2024 1

ah, it means that this warning appears because this template tries to find out the system language, then looks for it in the locales datashet. because the default language provided is en so they are trying to return en.

from nuxt3-awesome-starter.

SuperService avatar SuperService commented on June 19, 2024 1

thanks for your helps

from nuxt3-awesome-starter.

SuperService avatar SuperService commented on June 19, 2024

thanks for your response
I don't added code "ko"
I can't understand over warning in your project
only my browser language code is 'ko'

from nuxt3-awesome-starter.

viandwi24 avatar viandwi24 commented on June 19, 2024

is your browser language set to "ko - korean"?

from nuxt3-awesome-starter.

SuperService avatar SuperService commented on June 19, 2024

yes all right
if I change language to 'en', your warning don't not appear

from nuxt3-awesome-starter.

viandwi24 avatar viandwi24 commented on June 19, 2024

I tried to check the locales that are registered first, if there is not it will still return to "en", maybe this will get rid of the warning earlier.
you can check in this commit c1091ca

from nuxt3-awesome-starter.

SuperService avatar SuperService commented on June 19, 2024

yes
so what is yur solution to remove warning?

from nuxt3-awesome-starter.

viandwi24 avatar viandwi24 commented on June 19, 2024

try doing a git pull to receive my latest commit update.
this commit should be c1091ca help

from nuxt3-awesome-starter.

viandwi24 avatar viandwi24 commented on June 19, 2024

your welcome, and i tried to add korean language too in this latest commit 84737af

I only use a direct language translator, if there are errors maybe you can contribute hahaha.

thanks!

from nuxt3-awesome-starter.

SuperService avatar SuperService commented on June 19, 2024

thanks @viandwi ๐Ÿ‘๐Ÿ‘๐Ÿ‘
I have 3 beginer question(not issues)
I am cloning your awesome starter with nuxt3 init app

  1. can't use variable in app.scss
    error: $fontFamily: undefined variable
    I think that this is sass setting problem๐Ÿ˜‚
  2. I already used locale files with .json but you used .yml file
    what do you prefer .json vs .yml?
  3. Your Components Architecture
    // state:styles
    const styles = reactive<{[key: string]: string}>(...)
    ๐Ÿ‘€ why do you use 'reactive' instead of 'ref'?
    // state
    const selectedXXX = computed(() => {...});
    ๐Ÿ‘€why do you use computed?

from nuxt3-awesome-starter.

viandwi24 avatar viandwi24 commented on June 19, 2024
  1. u can check in this issue #13, I don't know where the error is exactly, because on my computer it runs smoothly (windows & macOS)

  2. I prefer to use .yml why? because, making language translations is a very tedious thing. with .json it makes us think of tons of symbols like keys to pass (") and then some (,) to separate values, as well as nested objects that take up space.
    with yml I just need to write easily and without much attachment to writing rules.

  3. why use reactive instead of ref? this is according to the documentation in vuejs, where reactive and ref are basically the same to create reactive data, the difference is that ref is used for primitive data (booleans, etc.) while reactive is for dynamic data (objects, arrays).
    reactive also has the advantage that it can be accessed directly without the need to pass .value

then computed is used to detect changes in existing props, because of my fear when props change for example you use the button component, then change the style programminly, you will find the button component does not re-render itself, therefore I use computed to make sure when props style changes, then the selectedStyle that will be applied to the class will also change and force the button component to re-render itself.

from nuxt3-awesome-starter.

SuperService avatar SuperService commented on June 19, 2024

Awesome Answer โœจ
thanks for your detail response
My Understand

  1. solution is windi.css version ( < 2.3.1)
  2. good
  3. reactive(sometimes not working with dynamic data)
    etc (Vue Apex Chart Library...)
    computed(detect change porps and then force rerendering with style)

My understand is right?

from nuxt3-awesome-starter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.