Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
æ¿åºã®ãã¸ã¿ã«ç¤¾ä¼æ¨é²ä¼è°ã¯6æ¥ããã¤ãã³ãã¼ã«ã¼ãã®å¸é¢ã«è¨è¼ããæ å ±ã®å·æ°ãªã©ä»å¾åãçµãæ½çã示ããéç¹è¨ç»ã®æ¹å®æ¡ãã¾ã¨ãããå¸é¢æ å ±ã¯2026å¹´ä¸ã«ããã©ã¤ãã·ã¼ã«é æ ®ããå 容ã«è¦ç´ãæ¹éã§ãæ¥å¹´ã®é常å½ä¼ã§ã®ãã¤ãæ³æ¹æ£æ¡æåºãè¦éã«å ¥ãããæ¹å®æ¡ã«ã¯ãã«ã¼ããå·¡ãç¸æ¬¡ãã§å¤æãããã©ãã«ã¸ã®å¯¾å¿ãçãè¾¼ãã ã9æ¥ã«é£è°æ±ºå®ããã ãä¸è¦§ããã¤ãã³ãã¼ãå·¡ãæè¿ã®ä¸»ãªãã©ãã« ã«ã¼ãã¯16å¹´ã«äº¤ä»ãå§ã¾ããæ°åãä½æã12æ¡ã®å人çªå·ã®ã»ãæ§å¥ãè¨è¼ããã¦ãããå½æåå¾ãã人ã®å¤ãã¯æ´æ°ææãè¿ã¥ãã¦ãããæ§çå°æ°è ãã®å£ä½ãªã©ããã®è¦æãè¸ã¾ãã身å証æã®æ©è½ãæ®ãã¤ã¤ä¸è¦ãªæ å ±ãåé¤ãããå½é é²æ¢ãç®çã¨ããå¸é¢ãã¶ã¤ã³ã®è¦ç´ããè¡ããä½æ¥é¨ä¼ãè¨ãã24年度æ©æã«è©³ç´°ãè©°ããã¨ãã¦ããã æå¹´ã対象ã«ã«ã¼ãã®æ´æ°æç¶ãã®ãªã³ã©ã¤ã³åãæ¤è¨ããã ãã¤ãä¿éºè¨¼ã«ä»äººã®æ å ±ã
# ãã¤ã°ã¬ã¼ã·ã§ã³ãã¡ã¤ã«ä½æã³ãã³ã $ rails generate migration ã¯ã©ã¹å # ã¢ãã«ä½æ $ rails generate model ã¢ãã«å ã¯ã©ã¹åã¯ä½ã§ãOKã ãã©ãã¢ã¯ã·ã§ã³+ãã¼ãã«åãã¨ããæ £ä¾ã£ã½ãã ã¢ãã«ã®æ°è¦ä½æã¯model ã¢ãã«åãå½åè¦åã¯ã¢ãã«åã¨ãã¼ãã«åã®è¦ç´ãåç §ã ãgenerate㯠g ããdestroy㯠d ãã¨ç¥ããã¨ãã§ããã®ã§ãç¥ãã¦ä½¿ãã ãã¼ãã«ãä½ããæ¶ã
ä»åéæããã㨠ããªãã¼ã·ã§ã³ã®ã¨ã©ã¼ã¡ãã»ã¼ã¸ãæ¥æ¬èªã«å¯¾å¿ããããã®è¨å®ãè¡ãã¾ãã å ·ä½çã«ã¯ããI18nï¼ã¢ã¤ã¨ã¤ãã£ã¼ã³ã¨ãï¼ãã¢ã¸ã¥ã¼ã«ãèªã¿è¾¼ãja.ymlãã¡ã¤ã«ãç·¨éãã¾ãã I18nã¨ã¯Railsã¢ããªãå¤è¨èªå対å¿ããããã®ã¢ã¸ã¥ã¼ã«ã§ãåä¸ã³ã¼ãã§ãã¦ã¼ã¶ã¼ã«è¡¨ç¤ºããè¨èªãåãæ¿ããã¨ãã§ãã¾ãã ja.ymlãã¡ã¤ã«ãä½æãã ãã®åã§application.rbã«ä¸è¨ã³ã¼ãã追å ãã¾ããã config.i18n.default_locale = :ja ãã®è¨å®ãããã¨I18nã¯ä¸è¨ã®ãã¡ã¤ã«ãèªã¿è¾¼ã¿ã¾ãã /config/locales/ja.yml æåã«I18nèªã¿è¾¼ã¿ãã¡ã¤ã«ja.ymlãä½æãã¾ãã root $ touch api/config/locales/ja.yml 確èªãã¦ããã¾ãããã root $ ls -1 api/config
ã½ããã¦ã§ã¢ã常ã«ææ°ã«ç§ãã¡ã¯ã½ããã¦ã§ã¢ãææ°ã«ä¿ã¤ãã¨ãããã«é£ããããç¥ã£ã¦ãã¾ãã ã±ã³ãªã¼ã«ã¯ãã¼ã¿ãææ°ã«ä¿ã¡æ´çããããã»ã¹ãèªååããå¤æ´ãèªåçã«åãè¾¼ããã¨ãã§ãã¾ãã ãã¾ãã¾ãªãã¼ã¿ã«å¯¾ããAPIã使ç¨ãã¦ãæ¢åã®ã·ã¹ãã ãå½ç¤¾ã®ã·ã¹ãã ã«ãªã³ã¯ãã¾ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}