Skip to content

Commit

Permalink
grid-comboの選択肢を翻訳
Browse files Browse the repository at this point in the history
  • Loading branch information
ef81sp committed Sep 25, 2024
1 parent 611c0e5 commit d159019
Showing 1 changed file with 64 additions and 64 deletions.
128 changes: 64 additions & 64 deletions content/patterns/combobox/examples/js/grid-combo-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,70 +10,70 @@
var aria = aria || {};

var FRUITS_AND_VEGGIES = [
['Apple', 'Fruit'],
['Artichoke', 'Vegetable'],
['Asparagus', 'Vegetable'],
['Banana', 'Fruit'],
['Beets', 'Vegetable'],
['Bell pepper', 'Vegetable'],
['Broccoli', 'Vegetable'],
['Brussels sprout', 'Vegetable'],
['Cabbage', 'Vegetable'],
['Carrot', 'Vegetable'],
['Cauliflower', 'Vegetable'],
['Celery', 'Vegetable'],
['Chard', 'Vegetable'],
['Chicory', 'Vegetable'],
['Corn', 'Vegetable'],
['Cucumber', 'Vegetable'],
['Daikon', 'Vegetable'],
['Date', 'Fruit'],
['Edamame', 'Vegetable'],
['Eggplant', 'Vegetable'],
['Elderberry', 'Fruit'],
['Fennel', 'Vegetable'],
['Fig', 'Fruit'],
['Garlic', 'Vegetable'],
['Grape', 'Fruit'],
['Honeydew melon', 'Fruit'],
['Iceberg lettuce', 'Vegetable'],
['Jerusalem artichoke', 'Vegetable'],
['Kale', 'Vegetable'],
['Kiwi', 'Fruit'],
['Leek', 'Vegetable'],
['Lemon', 'Fruit'],
['Mango', 'Fruit'],
['Mangosteen', 'Fruit'],
['Melon', 'Fruit'],
['Mushroom', 'Fungus'],
['Nectarine', 'Fruit'],
['Okra', 'Vegetable'],
['Olive', 'Vegetable'],
['Onion', 'Vegetable'],
['Orange', 'Fruit'],
['Parsnip', 'Vegetable'],
['Pea', 'Vegetable'],
['Pear', 'Fruit'],
['Pineapple', 'Fruit'],
['Potato', 'Vegetable'],
['Pumpkin', 'Fruit'],
['Quince', 'Fruit'],
['Radish', 'Vegetable'],
['Rhubarb', 'Vegetable'],
['Shallot', 'Vegetable'],
['Spinach', 'Vegetable'],
['Squash', 'Vegetable'],
['Strawberry', 'Fruit'],
['Sweet potato', 'Vegetable'],
['Tomato', 'Fruit'],
['Turnip', 'Vegetable'],
['Ugli fruit', 'Fruit'],
['Victoria plum', 'Fruit'],
['Watercress', 'Vegetable'],
['Watermelon', 'Fruit'],
['Yam', 'Vegetable'],
['Zucchini', 'Vegetable'],
];
['リンゴ', '果物'],
['アーティチョーク', '野菜'],
['アスパラガス', '野菜'],
['バナナ', '果物'],
['ビート', '野菜'],
['ピーマン', '野菜'],
['ブロッコリー', '野菜'],
['メキャベツ', '野菜'],
['キャベツ', '野菜'],
['ニンジン', '野菜'],
['カリフラワー', '野菜'],
['セロリ', '野菜'],
['チャード', '野菜'],
['チコリ', '野菜'],
['トウモロコシ', '野菜'],
['キュウリ', '野菜'],
['ダイコン', '野菜'],
['デーツ', '果物'],
['エダマメ', '野菜'],
['ナス', '野菜'],
['エルダーベリー', '果物'],
['フェンネル', '野菜'],
['イチジク', '果物'],
['ニンニク', '野菜'],
['ブドウ', '果物'],
['ハネデューメロン', '果物'],
['アイスバーグレタス', '野菜'],
['エルサレムアーティチョーク', '野菜'],
['ケール', '野菜'],
['キウイ', '果物'],
['リーク', '野菜'],
['レモン', '果物'],
['マンゴー', '果物'],
['マンゴスチン', '果物'],
['メロン', '果物'],
['キノコ', '菌類'],
['ネクタリン', '果物'],
['オクラ', '野菜'],
['オリーブ', '野菜'],
['タマネギ', '野菜'],
['オレンジ', '果物'],
['パースニップ', '野菜'],
['エンドウ', '野菜'],
['ナシ', '果物'],
['パイナップル', '果物'],
['ジャガイモ', '野菜'],
['カボチャ', '果物'],
['マルメロ', '果物'],
['ラディッシュ', '野菜'],
['ルバーブ', '野菜'],
['エシャロット', '野菜'],
['ホウレンソウ', '野菜'],
['カボチャ', '野菜'],
['イチゴ', '果物'],
['サツマイモ', '野菜'],
['トマト', '果物'],
['カブ', '野菜'],
['ウグリフルーツ', '果物'],
['ビクトリアプラム', '果物'],
['クレソン', '野菜'],
['スイカ', '果物'],
['ヤム', '野菜'],
['ズッキーニ', '野菜'],
].sort((a, b) => a[0].localeCompare(b[0])); // 配列リテラルをあいうえお順に並び替えると原文との対応が失われるため、sort()を使用

function searchVeggies(searchString) {
var results = [];
Expand Down

0 comments on commit d159019

Please sign in to comment.