@scriptonita/chess-football-ui 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -146,6 +146,49 @@ var Football = ({ className }) => {
146
146
  }
147
147
  );
148
148
  };
149
+ var STATIC_I18N_KEYS = [
150
+ "actionPointsAriaLabel",
151
+ "actionPointsShort",
152
+ "endTurn",
153
+ "endTurnConfirm",
154
+ "endTurnConfirmDescription",
155
+ "endTurnConfirmYes",
156
+ "endTurnKeepPlaying",
157
+ "history.empty",
158
+ "history.goal",
159
+ "history.interception",
160
+ "history.move",
161
+ "history.offside",
162
+ "history.pass",
163
+ "history.tackle",
164
+ "history.title",
165
+ "history.turn",
166
+ "history.viewAll",
167
+ "move",
168
+ "offsideWarning",
169
+ "pass",
170
+ "selectedPiece.alreadyMoved",
171
+ "selectedPiece.atSquare",
172
+ "selectedPiece.empty",
173
+ "selectedPiece.hasBall",
174
+ "teamBlack",
175
+ "teamWhite",
176
+ "waitingRival",
177
+ "yourTurn"
178
+ ];
179
+ var PIECE_I18N_KEYS = [...Object.values(chessFootballEngine.SHORT_KEY), ...Object.values(chessFootballEngine.LONG_KEY)].map(
180
+ (label) => `pieces.${label}`
181
+ );
182
+ var EVENT_TOAST_I18N_KEYS = [
183
+ "eventToast.interception",
184
+ "eventToast.offside",
185
+ "eventToast.tackle"
186
+ ];
187
+ var GAME_I18N_KEYS = [
188
+ ...STATIC_I18N_KEYS,
189
+ ...PIECE_I18N_KEYS,
190
+ ...EVENT_TOAST_I18N_KEYS
191
+ ];
149
192
  var fallback = (key) => key;
150
193
  var GameI18nContext = React.createContext(fallback);
151
194
  function GameI18nProvider({ t, children }) {
@@ -1306,6 +1349,7 @@ exports.Button = Button;
1306
1349
  exports.ConfirmDialog = ConfirmDialog;
1307
1350
  exports.EventToast = EventToast;
1308
1351
  exports.Football = Football;
1352
+ exports.GAME_I18N_KEYS = GAME_I18N_KEYS;
1309
1353
  exports.GameBoard = GameBoard;
1310
1354
  exports.GameControls = GameControls;
1311
1355
  exports.GameI18nProvider = GameI18nProvider;