1df226684Sopenharmony_ci/* 2df226684Sopenharmony_ci * Copyright (c) 2024 Huawei Device Co., Ltd. 3df226684Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4df226684Sopenharmony_ci * you may not use this file except in compliance with the License. 5df226684Sopenharmony_ci * You may obtain a copy of the License at 6df226684Sopenharmony_ci * 7df226684Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8df226684Sopenharmony_ci * 9df226684Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10df226684Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11df226684Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12df226684Sopenharmony_ci * See the License for the specific language governing permissions and 13df226684Sopenharmony_ci * limitations under the License. 14df226684Sopenharmony_ci */ 15df226684Sopenharmony_ci 16df226684Sopenharmony_ciimport I18n from '@ohos.i18n'; 17df226684Sopenharmony_ci 18df226684Sopenharmony_ciconst TAG = 'systemUtils'; 19df226684Sopenharmony_ci 20df226684Sopenharmony_ciexport class SystemUtils { 21df226684Sopenharmony_ci public static isRTL(): boolean { 22df226684Sopenharmony_ci return I18n.isRTL(I18n.System.getSystemLocale()); 23df226684Sopenharmony_ci } 24df226684Sopenharmony_ci}