>  Q&A  >  본문

$t를 구성 요소의 국제화된 데이터 메서드에 소품으로 전달합니다.

일반적인 방법으로 번역할 필요는 없지만 두 개의 객체 배열을 번역하고 컴포넌트에 바인딩하고 싶습니다

<InfoNews 
           v-for="infonew in infonews"
            :id="infonew.id"
            :title="infonew.title"
            :content="infonew.content"
          />
 data() {
    return {
     infonews: [
        {
          id: "01",
          title: "what we do",
          content:"industke aecimen book. ",
        },
        {
          id: "02",
          title: "our mission",
          content:"ggdddg",
           
        },
      ],
    };

P粉898049562P粉898049562211일 전335

모든 응답(1)나는 대답할 것이다

  • P粉884667022

    P粉8846670222024-03-22 10:23:33

    make infonews 成为计算属性。每个的 titlecontent 가 번역 키여야 합니다.

    으아악

    회신하다
    0
  • 취소회신하다